-
July 20th, 2021, 05:33 AM
#1
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!
Last edited by Dang.D.Khanh; July 20th, 2021 at 08:10 AM.
-
July 20th, 2021, 06:42 AM
#2
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...)?
Victor Nijegorodov
-
July 20th, 2021, 08:12 AM
#3
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?
-
July 20th, 2021, 10:55 AM
#4
Re: How to avoid Titlebar flicker?
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?
Victor Nijegorodov
-
July 20th, 2021, 07:36 PM
#5
Re: How to avoid Titlebar flicker?
Thanks sir, I got it.
so i will remove this function in my code.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|