- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
WM_CTLCOLORSTATIC)
iSt = MSFWIN$SetBkColor(hDC, #000080)
iSt = SetBkMode(hDC, TRANSPARENT)
OpenHookProc = hBrush
case (WM_DESTROY)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I modified my Open/Save dialog box hook procedure with the code you provided, and also subclassed the dlg procedure while processing the WM_INITDIALOG message inthe hook procedure. The Open and Saveas Dlg boxes are centered on the screen, and respond to all user input. However,I monitored the messages being sent toboth the hook and subclassed dialog procedures, and never saw the WM_CTLCOLORDLG (#0136, 310 dec)message, so the application never had an oportunity to process this message. The message streams for both dlg proceduresincluded position change, redraw, notify, and destroy messages (to name a few), and appeared to be normal except for the absence of the WM_CTLCOLORDLG. The discussion of the WM_CTLCOLORDLG message in the SDK states that the"...WM_CTLCOLORDLG message is sent to the dialog box itself...." However,the hook procedure (and I believe the subclassed proc.) is actually a procedure for a child of the original dlg box. Is it possible thatthe WM_CTLCOLORDLG message is not being sent to the child window? If this is the problem,is it possible to divert the message to the child dlg box message que?
Message Edited by halcyong@fcc.net on 01-24-2004 01:42 PM
Message Edited by halcyong@fcc.net on 01-24-2004 01:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm getting WM_CTLCOLORDLG here.
I suspect the problem is in your subclassing code -- could you post it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page