wm-paint

SetWindowsHookEx in C#

I'm trying to hook a 3rd party app so that I can draw to its screen. Drawing to the screen is easy and I need no help with it, but I seem to be having issues with using SetWindowsHookEx to handle WH_GETMESSAGE. I can't figure out what to pass for the last 2 parameters. using System; using System.Collections.Generic; using System.Compo...

Not receiving WM_PAINT message when returning from Security Screen (Ctrl+Alt+Del) in Windows7

I need to detect the closing of the security screen, this is the full screen that appears when a user presses Ctrl+Alt+Del under windows. In Xp my application receives an wm_paint message when this screen is closed but under windows 7, a message is not always received, maybe only 25% of the time. I tried catching the the WM_WTSSESSION...

Intercepting a WM_PAINT message and acting upon this

I'm trying to intercept/hook the WM_PAINT message of the desktop in C++. I'm currently drawing with the desktop handle, my only problem is that I'm not in sync so it might flicker. What I basically would like is a statement where I can check on the WM_PAINT of UINT message. When this is the case, I want to do something else. I'm going ...

WM_PAINT, Java and capturing hidden windows

Hi, first a disclaimer, I'm a java programmer and have almost null idea about the windows api. So please bear with me. My goal is to use Java to capture a hidden window. My target platform is windows. I do understand that the robot class is used for capuring the visible part of the screen. After some browsing, I came across these three...

Winforms Flickering While Drawing Image on Taskbar

Right now I'm drawing a small 16x16 image on the title bar of my window. It works nicely, except for an obnoxious flicker that I cant figure out how to get rid of. I'm simply drawing the image like this: Protected Overrides Sub WndProc(ByRef m As Message) If m.Msg = WM_SIZE Then wnd_size = New Size(New Point(CInt(m.LParam)...