Click here to Skip to main content
15,911,317 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow you find how many MDI child windows are open ? Pin
25-Feb-02 0:01
suss25-Feb-02 0:01 
AnswerRe: How you find how many MDI child windows are open ? Pin
Paul M Watt25-Feb-02 0:31
mentorPaul M Watt25-Feb-02 0:31 
GeneralSending message to MessageBox ... Pin
Hadi Rezaee25-Feb-02 0:01
Hadi Rezaee25-Feb-02 0:01 
GeneralRe: Sending message to MessageBox ... Pin
Paul M Watt25-Feb-02 0:07
mentorPaul M Watt25-Feb-02 0:07 
GeneralRe: Sending message to MessageBox ... Pin
Nish Nishant25-Feb-02 1:27
sitebuilderNish Nishant25-Feb-02 1:27 
GeneralRe: Sending message to MessageBox ... Pin
Ravi Bhavnani25-Feb-02 1:41
professionalRavi Bhavnani25-Feb-02 1:41 
GeneralPainting Pin
Wizard_0124-Feb-02 23:43
Wizard_0124-Feb-02 23:43 
GeneralRe: Painting Pin
Paul M Watt24-Feb-02 23:57
mentorPaul M Watt24-Feb-02 23:57 
There are two things that you could do.

1. Tell the child control not to paint itself at all at the time you are interested in, in your WM_PAINT handler by calling ::ValidateRect(hWndChild, NULL). This will validate the invalid region of your child control, and Windows will never generate a WM_PAINT message for the child.

2. Right before the code that you want to paint the red rectangle or what ever else, force an update of the child window with a call to UpdateWindow(hWndChild), this will force the control to update itself, then you can draw the stuff that you want, and the child will not redraw after that.
QuestionHTML to rtf conversion? Pin
Kumar saurabh24-Feb-02 23:19
Kumar saurabh24-Feb-02 23:19 
AnswerRe: HTML to rtf conversion? Pin
Simon Walton25-Feb-02 0:04
Simon Walton25-Feb-02 0:04 
GeneralRe: HTML to rtf conversion? Pin
Kumar saurabh25-Feb-02 0:11
Kumar saurabh25-Feb-02 0:11 
AnswerRe: HTML to rtf conversion? Pin
Kannan Kalyanaraman25-Feb-02 6:57
Kannan Kalyanaraman25-Feb-02 6:57 
AnswerRe: HTML to rtf conversion? Pin
moliate25-Feb-02 23:14
moliate25-Feb-02 23:14 
General[Message Deleted] Pin
zeki yugnak24-Feb-02 23:19
zeki yugnak24-Feb-02 23:19 
GeneralRe: mfc Pin
Christian Graus24-Feb-02 23:19
protectorChristian Graus24-Feb-02 23:19 
GeneralRe: mfc Pin
Simon Walton25-Feb-02 0:06
Simon Walton25-Feb-02 0:06 
GeneralRe: mfc Pin
Roger Stewart25-Feb-02 12:21
professionalRoger Stewart25-Feb-02 12:21 
GeneralContext Menu Pin
Jerome Conus24-Feb-02 22:29
Jerome Conus24-Feb-02 22:29 
QuestionAuto resizing regions??? Pin
24-Feb-02 22:34
suss24-Feb-02 22:34 
AnswerRe: Auto resizing regions??? Pin
Paul M Watt24-Feb-02 22:52
mentorPaul M Watt24-Feb-02 22:52 
GeneralRe: Auto resizing regions??? Pin
24-Feb-02 23:06
suss24-Feb-02 23:06 
GeneralRe: Auto resizing regions??? Pin
Paul M Watt24-Feb-02 23:35
mentorPaul M Watt24-Feb-02 23:35 
GeneralSTLport install procedure Pin
Travis D. Mathison24-Feb-02 22:32
Travis D. Mathison24-Feb-02 22:32 
GeneralRe: STLport install procedure Pin
Christian Graus24-Feb-02 22:38
protectorChristian Graus24-Feb-02 22:38 
GeneralRe: STLport install procedure Pin
Travis D. Mathison24-Feb-02 23:25
Travis D. Mathison24-Feb-02 23:25 

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.