UINT CALLBACK OpenHook( HWND hwnd, WPI_MSG msg, WPI_PARAM1 wparam, WPI_PARAM2 lparam ) #endif { UINT ret; wparam = wparam; lparam = lparam; hwnd = hwnd; ret = FALSE; switch( msg ) { #if defined(__NT__) case WM_DESTROY: LastPath = GetStrFromEdit( hwnd, PATH_STATIC_CONTROL ); break; #endif case WM_INITDIALOG: // We must call this to subclass the directory listbox even // if the app calls Ctl3dAutoSubclass (commdlg bug) GUICtl3dSubclassDlg( hwnd, CTL3D_ALL ); ret = TRUE; break; } return( ret ); }
UINT CALLBACK OpenHook( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) { UINT ret; wparam = wparam; lparam = lparam; hwnd = hwnd; ret = false; switch( msg ) { #if defined(__NT__) case WM_DESTROY: LastPath = GetStrFromEdit( hwnd, PATH_STATIC_CONTROL ); break; #endif case WM_INITDIALOG: // We must call this to subclass the directory listbox even // if the app calls Ctl3dAutoSubclass (commdlg bug) CvrCtl3dSubclassDlgAll( hwnd ); ret = true; break; } return( ret ); }