Lines Matching refs:hWnd
53 static HWND hWndDirPicker;
61 static void fillComboBox(HWND hWnd)
63 HWND hWndCB = GetDlgItem(hWnd, ID_COMBO_DIR);
64 HWND hWndTempLB = GetDlgItem(hWnd, ID_LISTTEMP_DIR);
134 static void fillTempLBWithDirs(HWND hWndTempLB, LPSTR lpszDir)
171 static void fillListBox(HWND hWnd, LPSTR lpszDir)
173 HWND hWndLB = GetDlgItem(hWnd, ID_LIST_DIR);
174 HWND hWndTempLB = GetDlgItem(hWnd, ID_LISTTEMP_DIR);
175 HWND hWndEdit = GetDlgItem(hWnd, ID_EDIT_DIR);
389 static void onInitDialog(HWND hWnd, LPSTR lpsz)
391 hWndDirPicker = hWnd;
414 MessageBox(GetParent(hWnd), szText, "Choose Directory", MB_ICONEXCLAMATION|MB_OK);
419 fillListBox(hWnd, lpsz);
420 fillComboBox(hWnd);
423 static void shutDialog(HWND hWnd)
428 static void onCommand(HWND hWnd, int id, HWND hWndCtl, UINT codeNotify)
441 shutDialog(hWnd);
445 EndDialog(hWnd, IDOK);
504 shutDialog(hWnd);
508 EndDialog(hWnd, IDOK);
511 shutDialog(hWnd);
513 EndDialog(hWnd, IDCANCEL);
520 static BOOL CALLBACK DirPickDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
524 onInitDialog(hWnd, (LPSTR)lParam);
527 HANDLE_WM_COMMAND(hWnd, wParam, lParam, onCommand);
535 HFONT hFont = (HFONT)SendMessage(hWnd, WM_GETFONT, 0, 0L);
538 HDC hDC = GetDC(hWnd);
544 ReleaseDC(hWnd, hDC);
599 BOOL PickupDirectory(HWND hWndOwner, LPSTR lpszString)