Flicker Free CFormView !
MJDALAL -- mjdalal@bechtel.com
Monday, April 22, 1996
[Mini-digest: 2 responses]
FYI...
I finally figured this one out, WS_CLIPCHILDREN !
I guess, this is what happens when you jump to Win-MFC programming, without
paying your dues to Petzoldzoic era!
>Here is a very simplified version of what my problem is -
>Windows common control Flicker whenever user sizes CFormView.
Manish Dalal
mjdalal@bechtel.com
-----From: MJDALAL
>>Was: CFormView - (Elastic) Annoying Flashes
>>Thanks Mike Blaszczak and Regis VAQUETTE
Env: VC++ 4.0, NT 3.51
Here is a very simplified version of what my problem is -
Windows common control Flicker whenever user sizes CFormView.
To reproduce problem>
1. Start a new project, name say flicker
2. Accept all defaults, and replace CView with CFormView
3. Create project
4. In resource editor place a ListBox control on CFormView
5. Build and Run the project
6. Now try to change size of the mdi child window using mouse - if you do this
continuously, ListBox control will flicker.(this is true with any other win
control as well)
This is very undesirable effect. I have tried WM_ERASEBKGND and WM_PAINT
message combination. However this does not help. Incidentally, even CView shows
the same effect, however due to white backgnd it is not that pronounced.
Any help will be highly appreciated.
BTW Mike, Elastic View is just a simple CFormView that resizes all its control
(to fit complete form) when user changes the form size, like Explorer.
:-( Also Begin, Defer and EndWindowPos does not help in this particular case!
Thanks,
Manish Dalal
mjdalal@bechtel.com
Matt Gradwohl -- Matt_Gradwohl@msn.com
Wednesday, April 24, 1996
Changing the View window style to remove WS_HREDRAW and WS_VREDRAW would have
helped also.
-Matt
----------
From: owner-mfc-l@netcom.com on behalf of MJDALAL
Sent: Monday, April 22, 1996 6:14 AM
To: mfc-l
Subject: Re: Flicker Free CFormView !
[Mini-digest: 2 responses]
FYI...
I finally figured this one out, WS_CLIPCHILDREN !
I guess, this is what happens when you jump to Win-MFC programming, without
paying your dues to Petzoldzoic era!
>Here is a very simplified version of what my problem is -
>Windows common control Flicker whenever user sizes CFormView.
Manish Dalal
mjdalal@bechtel.com
-----From: MJDALAL
>>Was: CFormView - (Elastic) Annoying Flashes
>>Thanks Mike Blaszczak and Regis VAQUETTE
Env: VC++ 4.0, NT 3.51
Here is a very simplified version of what my problem is -
Windows common control Flicker whenever user sizes CFormView.
To reproduce problem>
1. Start a new project, name say flicker
2. Accept all defaults, and replace CView with CFormView
3. Create project
4. In resource editor place a ListBox control on CFormView
5. Build and Run the project
6. Now try to change size of the mdi child window using mouse - if you do this
continuously, ListBox control will flicker.(this is true with any other win
control as well)
This is very undesirable effect. I have tried WM_ERASEBKGND and WM_PAINT
message combination. However this does not help. Incidentally, even CView
shows
the same effect, however due to white backgnd it is not that pronounced.
Any help will be highly appreciated.
BTW Mike, Elastic View is just a simple CFormView that resizes all its control
(to fit complete form) when user changes the form size, like Explorer.
:-( Also Begin, Defer and EndWindowPos does not help in this particular case!
Thanks,
Manish Dalal
mjdalal@bechtel.com
| Вернуться в корень Архива
|