DialogBox in Win32 - Prevent multiple instance
- by UK
Hello all,
I have a program which creates DialogBox window when user clicks the menu item from tray icon,
case ID_OPTIONS:
DialogBox ( GetModuleHandle ( NULL ), MAKEINTRESOURCE ( IDD_SETUP_DIALOG ), hWnd, reinterpret_cast<DLGPROC>(SetupDlgProc) );
return 0;
But the problem here is everytime when users clicks item from…