Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CBN_DBLCLICK - severe confusion. Please help!!!!! Pin
PJ Arends24-Jan-03 12:31
professionalPJ Arends24-Jan-03 12:31 
GeneralThat helped!. One final question Pin
nss24-Jan-03 13:47
nss24-Jan-03 13:47 
GeneralRe: That helped!. One final question Pin
PJ Arends24-Jan-03 15:07
professionalPJ Arends24-Jan-03 15:07 
GeneralRe: That helped!. One final question Pin
nss25-Jan-03 4:47
nss25-Jan-03 4:47 
GeneralGetting a combobox to do some stuff Pin
ns24-Jan-03 10:34
ns24-Jan-03 10:34 
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 
Basic design info:
Dialgo app, main window always up and one secondary dialog window can be broght up one at a time from the main window. Each window has a timer that updates based on data read from another computer. Most of the controls are buttons based on CButtonST. I use the m_MouseOnButton in the control to turn it on or off, thus this enables me to set the color and text on the button (is there a better way to do this????)

Problem: After this program runs for awhile it stops drawing the CButtonST subclassed controls and some of the drop downs start displaying a "6" instead of the down arrow. All the static and straight Visual Studios controls don't seem to have this problem (they are alway visable).

I've had this problem for quite some time now and have tried just about everything to make it go away. I thought that I was on to something when I slowed the timers and the problem took much longer to happen. So I figured that I was telling windows to draw too much. To many WM_PAINT messages, is this possible? Do VS controls have priority over subclassed controls? Does each item that has changed create a WM_PAINT message? Is this bad? Is there a better way?

Thinking along these lines I went into the code for every page and made it so that the controls would only be changed if the data received from the other computer had changed, thus it stopped drawing every cycle of the timer. This seem to help as now it really takes a long time for the problem to show up, but when it does it doesn't go away until I re-start the application.

This is my first VS MFC application and I've done it all with the help of this forum. So there is a good chance that maybe I overlooked something or am doing something that I shouldn't.

Any help would be much appriciated!!!!

Thanks!

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 
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 

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.