ListView
-
Hallo, I'm doing a program in WINAPI. In form with grid ( ListView ) after double click new form is opened. I wont to open more then only one window, but when I'm clicking on another line there is no effect. I wont to have more new windows opened in the same time.
INT_PTR CALLBACK DlgK3 ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
case WM_NOTIFY:
hdr = ( LPNMHDR )lParam;
if ( hdr -> idFrom == IDC_LIST2 )
{
if ( hdr->code == NM_DBLCLK )
{
DialogBox(g_hInstance,MAKEINTRESOURCE(IDD_STATISTIKA),
g_hWnd, (DLGPROC)DialogStatistika); //new form
}
}
break; -
Hallo, I'm doing a program in WINAPI. In form with grid ( ListView ) after double click new form is opened. I wont to open more then only one window, but when I'm clicking on another line there is no effect. I wont to have more new windows opened in the same time.
INT_PTR CALLBACK DlgK3 ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
case WM_NOTIFY:
hdr = ( LPNMHDR )lParam;
if ( hdr -> idFrom == IDC_LIST2 )
{
if ( hdr->code == NM_DBLCLK )
{
DialogBox(g_hInstance,MAKEINTRESOURCE(IDD_STATISTIKA),
g_hWnd, (DLGPROC)DialogStatistika); //new form
}
}
break;Dialogbox creates a model dialog, you have to create a model less dialog using CreateDialog() function. http://www.winprog.org/tutorial/modeless\_dialogs.html
-
Dialogbox creates a model dialog, you have to create a model less dialog using CreateDialog() function. http://www.winprog.org/tutorial/modeless\_dialogs.html