通过响应此消息,对话框可以使用指定的显示设备上下文句柄设置其文本和背景色。 C++ 复制 #define WM_CTLCOLORDLG 0x0136 参数 wParam 对话框的设备上下文的句柄。 lParam 对话框的句柄。 返回值 如果应用程序处理此消息,则必须将句柄返回到画笔。 系统使用画笔绘制对话框的背景。 备注 默认情况下, DefWindowProc...
請注意,WM_CTLCOLORDLG訊息會傳送至對話方塊本身;所有其他WM_CTLCOLOR*訊息都會傳送給控制項的擁有者。 如果對話方塊程式處理此訊息,它應該會將所需的傳回值轉換成INT_PTR,並直接傳回值。 如果對話方塊程式傳回FALSE,則會執行預設訊息處理。會忽略 SetWindowLong函式所設定的DWL_MSGRESULT值。
WM_CTLCOLORDLG hdcDlg = (HDC) wParam; hwndDlg = (HWND) lParam; ParametershdcDlg Handle to the device context for the dialog box hwndDlg Handle to the dialog boxReturn ValuesIf an application processes this message, it must return the handle of a brush. The system uses the brush to paint...
DlgHookProc & WM_CTLCOLORDLG Subscribe More actions ahasan Beginner 01-22-2004 07:02 PM 1,551 Views CVF 6.6, Win32 app. -- I created a hook procedure for the Open and Saveas Dlg boxes (Explorer style) to position the Dlg boxes on the screen. The hook proc. works fine ...
請注意, WM_CTLCOLORDLG 訊息會傳送至對話方塊本身;所有其他 WM_CTLCOLOR* 訊息都會傳送給控制項的擁有者。如果對話方塊程式處理此訊息,它應該會將所需的傳回值轉換成 INT_PTR ,並直接傳回值。 如果對話方塊程式傳回 FALSE,則會執行預設訊息處理。 會忽略 SetWindowLong函式所設定的DWL_MSGRESULT值。
WM_CTLCOLORDLG hdcDlg = (HDC)wParam;hwndDlg = (HWND)lParam; ParametershdcDlg Handle to the device context for the dialog box hwndDlg Handle to the dialog boxReturn ValuesIf an application processes this message, it must return the handle of a brush. The system uses the brush to paint the...
DlgHookProc & WM_CTLCOLORDLG Subscribe More actions ahasan Beginner 01-22-2004 07:02 PM 1,554 Views CVF 6.6, Win32 app. -- I created a hook procedure for the Open and Saveas Dlg boxes (Explorer style) to position the Dlg boxes on the screen. The hook proc. works fine ...
WM_CTLCOLORDLG hdcDlg = (HDC) wParam; hwndDlg = (HWND) lParam; Parameters hdcDlg Handle to the device context for the dialog box hwndDlg Handle to the dialog box Return Values If an application processes this message, it must return the handle of a brush. The system uses the brush to ...
WM_CTLCOLORDLG hdcDlg = (HDC) wParam; hwndDlg = (HWND) lParam; ParametershdcDlg Handle to the device context for the dialog box hwndDlg Handle to the dialog boxReturn ValuesIf an application processes this message, it must return the handle of a brush. The system uses the brush to paint...
WM_CTLCOLORDLG hdcDlg = (HDC) wParam; hwndDlg = (HWND) lParam; Parameters hdcDlg Handle to the device context for the dialog box hwndDlg Handle to the dialog box Return Value If an application processes this message, it must return the handle of a brush. The system uses the brush to ...