Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting a combobox to do some stuff Pin
Stefan Pedersen24-Jan-03 12:47
Stefan Pedersen24-Jan-03 12:47 
GeneralRe: Getting a combobox to do some stuff Pin
georgiek5024-Jan-03 17:03
georgiek5024-Jan-03 17:03 
GeneralWindows stops drawing my subclassed controls Pin
jimNLX24-Jan-03 10:28
jimNLX24-Jan-03 10:28 
GeneralRe: Windows stops drawing my subclassed controls Pin
Neville Franks24-Jan-03 10:49
Neville Franks24-Jan-03 10:49 
GeneralRe: Windows stops drawing my subclassed controls Pin
jimNLX24-Jan-03 11:51
jimNLX24-Jan-03 11:51 
GeneralRe: Windows stops drawing my subclassed controls Pin
Neville Franks24-Jan-03 12:31
Neville Franks24-Jan-03 12:31 
GeneralRe: Windows stops drawing my subclassed controls Pin
Gary R. Wheeler25-Jan-03 3:09
Gary R. Wheeler25-Jan-03 3:09 
GeneralRe: Windows stops drawing my subclassed controls Pin
jimNLX25-Jan-03 12:32
jimNLX25-Jan-03 12:32 
I went and checked the GDI objects on the task manager and found that when I close the secondary window that I just opened the GDI object count doesn't decrease by the amount that was taken and will continue to grow as I open and close the page.

When I close the page I'm doing:

DestroyWindow();
PostNcDestroy();


My objects on the page are created using:

CButtonST Satus_RX;
CButtonST Satus_DUP;
CButtonST Satus_16F;
CButtonST Satus_16R;
etc.....

Then in InitDialog() I subclass them using:

Satus_RX.SubclassDlgItem(IDC_ALQ122_RX,this);
Satus_DUP.SubclassDlgItem(IDC_ALQ122_DUP,this);
Satus_16F.SubclassDlgItem(IDC_ALQ122_16F,this);
Satus_16R.SubclassDlgItem(IDC_ALQ122_16R,this);
Thus I'm under the impression that these will be delete with the window, am I wrong? What should I do now?

Also, I was looking at CButtonST and it appears that if m_MouseOnButton = 1 then it will re-draw the item every time. I set the button to 1 as this is how I display info from the other computer. example: if the other computer is ON then I set the mouse button to 1 so that its text displays "Running" and the Color is Green. If the other computer is off then the button is set to 0 and displays "OFFLINE" and the button is colored Red. Is this the wrong way to handle this?

Thanks for all the help guys. I've tried to download the GlowCode but haven't been able to yet....
GeneralRe: Windows stops drawing my subclassed controls Pin
Gary R. Wheeler26-Jan-03 1:25
Gary R. Wheeler26-Jan-03 1:25 
GeneralRe: Windows stops drawing my subclassed controls Pin
Barbara Shafer24-Feb-03 9:11
Barbara Shafer24-Feb-03 9:11 
Generaltcslen Pin
ns24-Jan-03 10:03
ns24-Jan-03 10:03 
GeneralRe: tcslen Pin
Roger Allen24-Jan-03 10:05
Roger Allen24-Jan-03 10:05 
GeneralThank you! Pin
ns24-Jan-03 10:11
ns24-Jan-03 10:11 
General_T as well... Pin
ns24-Jan-03 10:15
ns24-Jan-03 10:15 
GeneralRe: Thank you! Pin
Jörgen Sigvardsson24-Jan-03 14:28
Jörgen Sigvardsson24-Jan-03 14:28 
GeneralRe: tcslen Pin
Michael Dunn24-Jan-03 16:14
sitebuilderMichael Dunn24-Jan-03 16:14 
GeneralIE type automatic scroll for menu... Pin
ns24-Jan-03 9:46
ns24-Jan-03 9:46 
GeneralRe: IE type automatic scroll for menu... Pin
Neville Franks24-Jan-03 10:52
Neville Franks24-Jan-03 10:52 
GeneralRe: IE type automatic scroll for menu... Pin
ns24-Jan-03 11:11
ns24-Jan-03 11:11 
GeneralCPropertyPage Question Pin
nlecren24-Jan-03 9:25
nlecren24-Jan-03 9:25 
Generaldragging a view problems Pin
dazinith24-Jan-03 8:48
dazinith24-Jan-03 8:48 
GeneralToolbar position of control is wrong!!! Pin
ns24-Jan-03 8:41
ns24-Jan-03 8:41 
Generalresolved. thanks Pin
ns24-Jan-03 9:31
ns24-Jan-03 9:31 
GeneralString problem (UNICODE / TCHAR) Pin
Daniel Strigl24-Jan-03 8:29
Daniel Strigl24-Jan-03 8:29 
GeneralRe: String problem (UNICODE / TCHAR) Pin
Joaquín M López Muñoz24-Jan-03 9:53
Joaquín M López Muñoz24-Jan-03 9:53 

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.