Click here to Skip to main content
16,005,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XP style menus in Win98 Pin
alex.barylski29-Mar-02 2:46
alex.barylski29-Mar-02 2:46 
GeneralRe: XP style menus in Win98 Pin
Philip Patrick29-Mar-02 2:19
professionalPhilip Patrick29-Mar-02 2:19 
GeneralRe: XP style menus in Win98 Pin
alex.barylski29-Mar-02 3:06
alex.barylski29-Mar-02 3:06 
GeneralPainting controls Pin
28-Mar-02 22:39
suss28-Mar-02 22:39 
GeneralRe: Painting controls Pin
Hans Ruck28-Mar-02 22:55
Hans Ruck28-Mar-02 22:55 
GeneralRe: Painting controls Pin
Jack Handy28-Mar-02 23:13
Jack Handy28-Mar-02 23:13 
GeneralRe: Painting controls Pin
Bernhard29-Mar-02 0:13
Bernhard29-Mar-02 0:13 
GeneralRe: Painting controls Pin
Paul M Watt29-Mar-02 5:11
mentorPaul M Watt29-Mar-02 5:11 
Make sure that you have the CS_CLIPCHILDREN style set for your dialog. When you ask for a DC for that window, it will automatically clip the children rectangles from where you are allowed to paint, and you will no longer paint over your controls.

You can set this style for your dialog after it has been created by doing this:

LONG lStyle = ::GetClassLong(hDlg, GCL_STYLE);
lStyle |= CS_CLIPCHILDREN;
::SetClassLong(hDlg, GCL_STYLE, lStyle);


By the way, you should paint the bitmap in the WM_ERASEBKGND message instead. This will reduce any flicker that may appear, and it is a fundamentally better place to perform that action.
GeneralWebBrowser control doesn't work in dialog window Pin
Hans Ruck28-Mar-02 21:36
Hans Ruck28-Mar-02 21:36 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
ColinDavies28-Mar-02 21:45
ColinDavies28-Mar-02 21:45 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
Hans Ruck28-Mar-02 21:54
Hans Ruck28-Mar-02 21:54 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
alex.barylski28-Mar-02 23:24
alex.barylski28-Mar-02 23:24 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
Hans Ruck28-Mar-02 23:35
Hans Ruck28-Mar-02 23:35 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
alex.barylski28-Mar-02 23:40
alex.barylski28-Mar-02 23:40 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
Hans Ruck28-Mar-02 23:50
Hans Ruck28-Mar-02 23:50 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
alex.barylski28-Mar-02 23:52
alex.barylski28-Mar-02 23:52 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
Hans Ruck29-Mar-02 0:00
Hans Ruck29-Mar-02 0:00 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
alex.barylski29-Mar-02 2:43
alex.barylski29-Mar-02 2:43 
GeneralRe: Problem solved Pin
Hans Ruck29-Mar-02 0:22
Hans Ruck29-Mar-02 0:22 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
Matt Newman29-Mar-02 3:32
Matt Newman29-Mar-02 3:32 
GeneralRe: WebBrowser control doesn't work in dialog window Pin
Jeremy Pullicino30-Apr-02 3:09
Jeremy Pullicino30-Apr-02 3:09 
QuestionWhat's wrong with this? Pin
Mazdak28-Mar-02 20:57
Mazdak28-Mar-02 20:57 
AnswerRe: What's wrong with this? Pin
28-Mar-02 21:10
suss28-Mar-02 21:10 
GeneralRe: What's wrong with this? Pin
Mazdak28-Mar-02 21:28
Mazdak28-Mar-02 21:28 
AnswerRe: What's wrong with this? Pin
Mazdak28-Mar-02 21:37
Mazdak28-Mar-02 21:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.