CStatic WS_VISIBLE how to repaint ? (newbies)
-
Hi all, I have trouble refreshing one static text after having set it to WM_VISIBLE off if I minimize & maximise again the static is gone but how can I send order to refresh the static text directly. I tried already invalidatrect drawwindows() and some other solutions, nothing work. I suppose that I should invalidat the Cstatic object (in fact the excellent CLabel class derived from CStatic) then send a WM_PAINT to the main but I don't know how to exactly do this following the rules to get clean code. (I'm newbies at MFC) Thanks for any help Dany
-
Hi all, I have trouble refreshing one static text after having set it to WM_VISIBLE off if I minimize & maximise again the static is gone but how can I send order to refresh the static text directly. I tried already invalidatrect drawwindows() and some other solutions, nothing work. I suppose that I should invalidat the Cstatic object (in fact the excellent CLabel class derived from CStatic) then send a WM_PAINT to the main but I don't know how to exactly do this following the rules to get clean code. (I'm newbies at MFC) Thanks for any help Dany
-
Hi all, I have trouble refreshing one static text after having set it to WM_VISIBLE off if I minimize & maximise again the static is gone but how can I send order to refresh the static text directly. I tried already invalidatrect drawwindows() and some other solutions, nothing work. I suppose that I should invalidat the Cstatic object (in fact the excellent CLabel class derived from CStatic) then send a WM_PAINT to the main but I don't know how to exactly do this following the rules to get clean code. (I'm newbies at MFC) Thanks for any help Dany
-
Many thanks, just tried it work fine... I dealed with several API and language and was always suspicious :suss: about MFC but it's incredible what we can do in no time :laugh: I don't want to abuse but one more question: Is there a ways to avoid immediate refresh when setting SW_SHOW cause I have several static (another name of course ;) ) to show and even if it's fast we can see that they come up one by one. something like : DisableWindowsUpdate(); ..SW_SHOW ..SW_SHOW ... EnableWindowsUpdate(); Again thanks it will be my last question (for this thread of course ):cool: