Home > Software engineering >  Single document program put a control will collapse in the client area is how to return a responsibi
Single document program put a control will collapse in the client area is how to return a responsibi

Time:10-03

In the View class OnPaint () function, GetDlgItem (IDC_OPERATOR) - & gt; ShowWindow (SW_HIDE) or GetDlgItem (IDC_LIST_OPERATE_ALARM) - & gt; SetWindowPos (... ) collapses,

CodePudding user response:

There is a? IDC_LIST_OPERATE_ALARM this control? Set the location in OnCreate function,,,

CodePudding user response:

Screenshots collapse dialog box, capture the stack

CodePudding user response:

Why do people like in the Onpaint operation control,,,
Here I have to poke fun at the MFC frame encapsulation was bad enough!

CodePudding user response:

reference tajon1226 reply: 3/f
why people like in the Onpaint operation control,,,
Here I have to poke fun at the MFC frame encapsulation was bad enough!


I also feel very bad, make do with it, after all, is sui generis

CodePudding user response:

reference tajon1226 reply: 3/f
why people like in the Onpaint operation control,,,
Here I have to poke fun at the MFC frame encapsulation was bad enough!

Because many people used to process when programming ideas and not accustomed to using the message callback,
Windows: "don't call me, would you please fill in the future when you receive a message processing, I will call you when the news come!"

CodePudding user response:

GetDlgItem () returns NULL, could use to determine the

The CWnd * pCtrl=GetDlgItem (IDC_LIST_OPERATE_ALARM);
If (pCtrl) pCtr - & gt; XXXXX

CodePudding user response:

Interface button didn't? The news of the button function did not create?
Is this your initialization program? It is written in OnInitDialog function,
  • Related