How to avoid Titlebar flicker?
Hi,
In the the my code,from MFC form, I call the ::Setfocus(hwnd) function to focus another windows application only once.
then i setfocus back to my MFC form.
my code like this:
Code:
HWND hwnd=getappHwnd(app);
::Setfocus(hwnd);
::Setfocus(this->m_hWnd);
Even though it's very fast but I still see the Title flicker.
Can I disable it without using the UnTitlebar form (by set property border none)?
Thanks you!
Re: How to avoid Titlebar flicker?
Where do you Setfocus to?
What is the relationship between this hwnd and your "MFC form"?
Which Title flickers?
What is "the UnTitlebar form"?
BTW, did you ever read the Announcement (Section Before you post...)?
Re: How to avoid Titlebar flicker?
Hi Sir, I have updated the post.
by Moving the focus through apps make titlebar's form flickering.
Can I disable this?
Re: How to avoid Titlebar flicker?
Quote:
Originally Posted by
Dang.D.Khanh
Hi,
In the the my code,from MFC form, I call the ::Setfocus(hwnd) function to focus another windows application only once.
then i setfocus back to my MFC form.
my code like this:
Code:
HWND hwnd=getappHwnd(app);
::Setfocus(hwnd);
::Setfocus(this->m_hWnd);
Even though it's very fast but I still see the Title flicker.
Can I disable it without using the UnTitlebar form (by set property border none)?
If you do not want to cause flickering then why do change the focus to "hwnd" and then back? :confused:
Re: How to avoid Titlebar flicker?
Thanks sir, I got it.
so i will remove this function in my code.