Why sometimes text in my CButton disappears ? 
Author Message
 Why sometimes text in my CButton disappears ?

i have made a CButton in my CView manually : contructor + create.
I want to change the text of CButton (caption) and i use
SetWindowTex(), member of CWnd to make it...
But after, when i select a item form menu which opens a CDialog for
example, i have noticed the text on CButton is like the first
declaration and then inchanged...
If i add in the code of CDialog the instruction Invalidate(), i notice
the CButton is refresh and then the text is good !
But i dont put the instruction Invalidate() in all my CDialog called
from my menu !!!
I thing i have a problem : is really the way to change text in CButton
with the instruction SetWindowText(), may be some code must be added ?
i need a solution quickly, please
if you can help , very thank
this project is very important for me ......

Mon, 04 Mar 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ScrollBar disappear sometimes when size

2. Change CButton color and CButton text color in CDialog

3. Disable CButton with icon: Icon disappears

4. Why does Parameter Info Not show sometimes?

5. SetCooperativeLevel fails SOMETIMES...why?

6. MFC Serialize: sometimes OK, sometimes not!

7. Listbox: Sometimes allowing multiple selection and sometimes not ?

8. Why does pDevMode of PRINTER_INFO_2 sometimes return NULL?

9. TCP: Why should send + closesocket sometimes not work?

10. Update to DataRow sometimes works and sometimes not

11. Why do MDI child's bitmaps disappear?

12. why did the interface-mark-node disappear?


Powered by phpBB® Forum Software