Click here to Skip to main content
16,010,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GIF->BMP Pin
Chris Losinger1-Nov-02 5:10
professionalChris Losinger1-Nov-02 5:10 
GeneralI need your GUI opinion... Pin
Member 103585471-Nov-02 0:35
Member 103585471-Nov-02 0:35 
GeneralRe: I need your GUI opinion... Pin
Christian Graus1-Nov-02 0:38
protectorChristian Graus1-Nov-02 0:38 
GeneralRe: I need your GUI opinion... Pin
Member 103585471-Nov-02 1:08
Member 103585471-Nov-02 1:08 
GeneralRe: I need your GUI opinion... Pin
Stephane Rodriguez.1-Nov-02 0:59
Stephane Rodriguez.1-Nov-02 0:59 
GeneralAdd a nice feature Pin
KarstenK1-Nov-02 1:06
mveKarstenK1-Nov-02 1:06 
GeneralRe: Add a nice feature Pin
Stephane Rodriguez.1-Nov-02 1:37
Stephane Rodriguez.1-Nov-02 1:37 
QuestionInvisible static control and window update hangs? Pin
Anonymous1-Nov-02 0:08
Anonymous1-Nov-02 0:08 
Hi!
I recently made a invisible static control by overriding CMyStatic::OnPaint() and doing nothing there.

Ouch. This does totally screw up the update of my parent window! When hiding the parent window (a dialog) through another window and get my dialog back on top of z-order, then all controls will be painted until my invisible control. All controls after my invisible control will not be repainted, I need to move the window to get them repainted.
That's pretty strange. I can't call the base class member CStatic::OnPaint(), because then it wouldn't be invisible anymore. I tried a bit and added this as only line in my OnPaint() handler: CPaintDC dc(this);

Now window update works as usually. Can somebody explain what's happening? I really like to understand.

Thanks Smile | :)
AnswerRe: Invisible static control and window update hangs? Pin
includeh101-Nov-02 1:05
includeh101-Nov-02 1:05 
AnswerRe: Invisible static control and window update hangs? Pin
Mythago1-Nov-02 1:02
Mythago1-Nov-02 1:02 
GeneralRe: Invisible static control and window update hangs? Pin
Anonymous1-Nov-02 1:30
Anonymous1-Nov-02 1:30 
GeneralRe: Invisible static control and window update hangs? Pin
Anonymous1-Nov-02 1:37
Anonymous1-Nov-02 1:37 
GeneralRe: Invisible static control and window update hangs? Pin
Mythago1-Nov-02 2:06
Mythago1-Nov-02 2:06 
GeneralRe: Invisible static control and window update hangs? Pin
Anonymous1-Nov-02 3:02
Anonymous1-Nov-02 3:02 
Generalsending data to printer Pin
vgkotha31-Oct-02 23:28
vgkotha31-Oct-02 23:28 
GeneralRe: sending data to printer Pin
KarstenK1-Nov-02 1:09
mveKarstenK1-Nov-02 1:09 
GeneralRe: sending data to printer Pin
Roger Allen1-Nov-02 5:58
Roger Allen1-Nov-02 5:58 
Questionbugs of vc 6.0? Pin
includeh1031-Oct-02 23:28
includeh1031-Oct-02 23:28 
GeneralProblem of Icon drawing in OCX Pin
Miao Miao31-Oct-02 22:28
Miao Miao31-Oct-02 22:28 
Generaldeleting a function Pin
Mel Feik31-Oct-02 22:16
Mel Feik31-Oct-02 22:16 
GeneralRe: deleting a function Pin
Christian Graus31-Oct-02 22:36
protectorChristian Graus31-Oct-02 22:36 
GeneralRe: deleting a function Pin
Mel Feik31-Oct-02 22:40
Mel Feik31-Oct-02 22:40 
GeneralRe: deleting a function Pin
Christian Graus1-Nov-02 0:34
protectorChristian Graus1-Nov-02 0:34 
GeneralRe: deleting a function Pin
Daniel Turini31-Oct-02 23:53
Daniel Turini31-Oct-02 23:53 
GeneralRe: deleting a function Pin
includeh101-Nov-02 2:36
includeh101-Nov-02 2:36 

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.