Does WM_DEACTIVATE exists? Application deactivated?
Post your questions regarding programming in C++ in here.
6 posts
Page 1 of 1
First of all this is in the C++ section, i do not want any VB or C# answers.
Im looking for the opposite of WM_ACTIVATE, because i want my program to stop updating some stuff that uses a lot of CPU when its deactivated. I have the WM_ACTIVATE to start updating, but i need a notification similar to WM_DEACTIVATE. Does that even exists? Or is there another way? I couldn't find any help on Google.
Im looking for the opposite of WM_ACTIVATE, because i want my program to stop updating some stuff that uses a lot of CPU when its deactivated. I have the WM_ACTIVATE to start updating, but i need a notification similar to WM_DEACTIVATE. Does that even exists? Or is there another way? I couldn't find any help on Google.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

What do you want to do ?
In my WndProc, i want to see if the message is the message that is sent when a window is deactivated. The WM_ACTIVATE message is sent when you activate the window, i would like to know if there was a similar WM_DEACTIVATE that is sent when the window is deactivated
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

If you mean hidden/shown with activated then you should take a look at WM_SHOWWINDOW Please don't talk in such a "wannabe pro" language I'm kinda gettin mad of it lol
For such "wannabe pro" language you should be able to see that hiding windows is not what is being asked here.
When a window is deactivated, a WM_ACTIVATE message is actually sent to both windows indicating each windows' status and the target/source window handles.
Are you using managed or unmanaged C++ code?
Here is some more documentation: http://msdn.microsoft.com/en-us/library ... S.85).aspx
When a window is deactivated, a WM_ACTIVATE message is actually sent to both windows indicating each windows' status and the target/source window handles.
Are you using managed or unmanaged C++ code?
Here is some more documentation: http://msdn.microsoft.com/en-us/library ... S.85).aspx
I'm using unmanaged C++. If I used managed it would probably be much easier, but it depends on the .NET Framework. Thx for the link, I first tried WM_KILLFOCUS but that only fired when it lost keyboard focus, now it works perfect 

LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023