PDA

Click to See Complete Forum and Search --> : Subclassing & Redrawing


jedjed
Nov 18th, 1999, 02:17 AM
I created an open dialog using the OPENFILENAME structure. Then I changed its border style using SetWindowLong(lngDialogHWnd, GWL_STYLE, WS_DLGFRAME) so that the dialog can't be resized and the Close, What's this button would not appear.
Now as far as windows is concerned there is no caption bar because of WS_DLGFRAME but infact there is, which is good. The problem is that if the dialog gets covered up then uncovered the border does not redraw.
I also wrote a message handler for it and try to force it to redraw there but that either doesn't work or or closes the IDE.

Anyone have any ideas.
Thanks alot
MAP