|
LboxWin *Win;
LboxListview *Lview;
LboxListview *Lview2 = NULL;
LboxThread Thread;
#define THREAD_END LBOX_USER + 1
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
switch( message )
{
case WM_NOTIFY:
if ( Lview2 != NULL ) {
Lview2->Notify( hWnd, lParam );
}
break;
case LBOX_LV_DBLCLK:
if ( Lview2->IsHandle( (HWND)wParam ) ) {
// 行が選択されている
if ( LVROW(lParam) != -1 ) {
LboxString TargetFile;
Lview2->SetCurrentRow( LVROW(lParam) );
Lview2->GetColumnText( 2, &TargetFile );
Win->MsgOk( &TargetFile );
}
}
break;
case THREAD_END:
Thread.Close();
break;
| |