Click here to Skip to main content
15,910,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:42
Ylis1-Nov-06 11:42 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
Zac Howland1-Nov-06 11:36
Zac Howland1-Nov-06 11:36 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:46
Ylis1-Nov-06 11:46 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
led mike1-Nov-06 11:54
led mike1-Nov-06 11:54 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 12:12
Ylis1-Nov-06 12:12 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Waldermort1-Nov-06 13:54
Waldermort1-Nov-06 13:54 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
led mike2-Nov-06 4:58
led mike2-Nov-06 4:58 
QuestionWindow messages [modified] Pin
Waldermort1-Nov-06 9:58
Waldermort1-Nov-06 9:58 
This is probably a stupid question, but is there any sort of time restriction on processing windows messages? In particualar the WM_PAINT and related messages?

I'm seeing some really strange behaviour with my window. I have 3 skinned static controls, each is an instance of exactly the same class. All message processing and function calls are identical. The only difference is the size and position. The control at the bottom of the window is failing to recieve WM_PAINT message while the window is being resized. Or I should say, failes to recieve messages when the main window is of a certain height.

here is the output from spy++
<00865> 0038085C S WM_WINDOWPOSCHANGING lpwp:0012E3B0
<00866> 0038085C R WM_WINDOWPOSCHANGING
<00867> 0038085C S WM_CHILDACTIVATE
<00868> 0038085C R WM_CHILDACTIVATE
<00869> 0038085C S WM_WINDOWPOSCHANGED lpwp:0012E3B0
<00870> 0038085C S WM_MOVE xPos:14 yPos:105
<00871> 0038085C R WM_MOVE
<00872> 0038085C R WM_WINDOWPOSCHANGED
<00873> 0038085C S WM_WINDOWPOSCHANGING lpwp:0012E3B0
<00874> 0038085C R WM_WINDOWPOSCHANGING
<00875> 0038085C S WM_CHILDACTIVATE
<00876> 0038085C R WM_CHILDACTIVATE
<00877> 0038085C S WM_WINDOWPOSCHANGED lpwp:0012E3B0
<00878> 0038085C S WM_MOVE xPos:14 yPos:104
<00879> 0038085C R WM_MOVE
<00880> 0038085C R WM_WINDOWPOSCHANGED
<00881> 0038085C S WM_WINDOWPOSCHANGING lpwp:0012E3B0
<00882> 0038085C R WM_WINDOWPOSCHANGING
<00883> 0038085C S WM_CHILDACTIVATE
<00884> 0038085C R WM_CHILDACTIVATE
<00885> 0038085C S WM_WINDOWPOSCHANGED lpwp:0012E3B0
<00886> 0038085C S WM_MOVE xPos:14 yPos:103
<00887> 0038085C R WM_MOVE
<00888> 0038085C R WM_WINDOWPOSCHANGED
<00889> 0038085C S WM_PAINT hdc:00000000
<00890> 0038085C R WM_PAINT
<00891> 0038085C S WM_NCPAINT hrgn:84041466
<00892> 0038085C R WM_NCPAINT
<00893> 0038085C S WM_ERASEBKGND hdc:EE01123B
<00894> 0038085C R WM_ERASEBKGND fErased:False


As you can see, the window only start getting these messages after its position is less than 104 units. Does anybody know why this might be happening?

I should also point out that I am repositioning / resizing the window, and the messages only fail when the size is being reduced, there is no problem when being expanded. I have tried the repositing with both SetWindowPos() and MoveWindow() both giving the same results.

-- modified at 16:47 Wednesday 1st November, 2006
AnswerRe: Window messages Pin
PJ Arends1-Nov-06 19:22
professionalPJ Arends1-Nov-06 19:22 
AnswerRe: Window messages Pin
Michael Dunn1-Nov-06 20:09
sitebuilderMichael Dunn1-Nov-06 20:09 
Questionall Slider objects are sending OnHScroll() msg Pin
aquawicket1-Nov-06 9:46
aquawicket1-Nov-06 9:46 
AnswerRe: all Slider objects are sending OnHScroll() msg Pin
Mark Salsbery1-Nov-06 10:03
Mark Salsbery1-Nov-06 10:03 
GeneralRe: all Slider objects are sending OnHScroll() msg Pin
aquawicket1-Nov-06 14:49
aquawicket1-Nov-06 14:49 
QuestionMFC - creating invisible window Pin
edvintas1-Nov-06 6:58
edvintas1-Nov-06 6:58 
AnswerRe: MFC - creating invisible window Pin
led mike1-Nov-06 6:59
led mike1-Nov-06 6:59 
GeneralRe: MFC - creating invisible window Pin
edvintas1-Nov-06 7:53
edvintas1-Nov-06 7:53 
AnswerRe: MFC - creating invisible window Pin
Mark Salsbery1-Nov-06 7:15
Mark Salsbery1-Nov-06 7:15 
AnswerRe: MFC - creating invisible window Pin
David Crow1-Nov-06 7:21
David Crow1-Nov-06 7:21 
QuestionRe: MFC - creating invisible window Pin
Chris Meech1-Nov-06 7:26
Chris Meech1-Nov-06 7:26 
AnswerRe: MFC - creating invisible window Pin
edvintas1-Nov-06 7:48
edvintas1-Nov-06 7:48 
GeneralRe: MFC - creating invisible window Pin
led mike1-Nov-06 8:06
led mike1-Nov-06 8:06 
QuestionRe: MFC - creating invisible window Pin
Chris Meech1-Nov-06 8:28
Chris Meech1-Nov-06 8:28 
AnswerRe: MFC - creating invisible window Pin
edvintas1-Nov-06 8:47
edvintas1-Nov-06 8:47 
GeneralRe: MFC - creating invisible window Pin
Mark Salsbery1-Nov-06 9:47
Mark Salsbery1-Nov-06 9:47 
QuestionRelease, Debug, Doc/view and message Pin
how jack1-Nov-06 6:43
how jack1-Nov-06 6:43 

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.