|
Im not sure is this[^] helpful for you?
|
|
|
|
|
Thank you, I think it is no use . but I still want to say you :Thank you very much to help me .
Hansen
|
|
|
|
|
Im not sure did you need to GetPixel and SetPixel
|
|
|
|
|
Hi, I'm trying to completely suppress a window of another process, i.e. the main window doesn't display, doesn't appear at taskbar for even one second.
Imagine you are playing 3D game in full screen, suddenly a window appears and minimizes your game screen, and you die in the game...
I've tried using SetWindowsHookEx to install a hook for each WH_CALLWNDPROC and WH_CBT, then SetWindowLong to subclass the target window to modify every single call to WM_SHOWWINDOW, WM_SETFOCUS, WM_ACTIVATE, WM_ACTIVATEAPP, WM_WINDOWPOSCHANGING, etc. In addition, I also call LockSetForegroundWindow(LSFW_LOCK) and PostMessage(hWnd, WM_CLOSE, 0, 0) whenever possible.
In the subclass WindowProc, for every WM_WINDOWPOSCHANGING message, I modify the lParam, change the flags to SWP_HIDEWINDOW|SWP_NOACTIVATE|SWP_NOMOVE|SWP_ NOOWNERZORDER|SWP_NOREPOSITION|SWP_NOSENDCHANGING|SWP_NOSIZE|SWP_NOZORDER
For every WM_SHOWWINDOW and WM_ACTIVATEAPP message, I modify the wParam to FALSE.
So far, the window will appear for a brief split second then disappear. This is still not good enough for me because of that split second, it minimizes the active game screen.
Does anybody know what other message, or flag that I show be trying? Is what I'm trying to do possible at all?
Thanks much!
|
|
|
|
|
Seriously? You have no control over the app that pops up this window???
|
|
|
|
|
Hi!
what is the problem for calling the CreateHardlink function?
i call this function in my project but it has "undeclared identifier" error.
i define _WIN32_WINNT in .h and .cpp files, but it has this error, yet.
#define _WIN32_WINNT 0X0500<br />
what do i do?
Zo.Naderi-Iran
|
|
|
|
|
I using CreateHardlink with #define _WIN32_WINNT 0X0500 and its compling without problem?where you declare #define
|
|
|
|
|
"#define _WIN32_WINNT 0X0500" is above ".cpp" file, what i call this function into it.
Zo.Naderi-Iran
|
|
|
|
|
If you insert it to StdAfx.h what happens?
|
|
|
|
|
valla sharmanda . man ham hamin moshkelo daram va natonestam halesh konam !
|
|
|
|
|
Hi!
i solve this problem:
in project properties, C/C++ option --> Command Line --> in "Additional options", you write: /D_WIN32_WINNT=0x0500
good luck (Ooo yesterday)
Zo.Naderi-Iran
|
|
|
|
|
See this :---> http://www.cygwin.com/ml/cygwin/2001-04/msg00779.html
|
|
|
|
|
Use this sample at :---> http://www.totalcmd.net/download.php?id=CreateHardLink
|
|
|
|
|
|
hi
i want write an application that work as a debuger.
i set a breakpointb in exe with "DebugeBreakProcess" function then i use "ContinueDebugEvent" function , But
it can not countinue execution the exe.
if you have information abut it please help me.
|
|
|
|
|
I think you can find your answer on www.Codeguru.com I think it has an article about exe files
|
|
|
|
|
Hello everybody!
I can't seem to find a reference on how the hell to do a simple operation like setting a control's "Enabled" to false... (ie, "gray" it out) In C# all you have to do is controlId.Enabled = false; , but MFC seems to handle things different... I'm being a complete n00b, but oh well... Thanks!
Windows Calculator told me I will die at 28.
|
|
|
|
|
For disable or enable you can use EnableWindow but if you want to work with controls you can declare variables for them.For example use of a Button you can declare CButton m_Button; and then m_Button.Functions Is this your question?
|
|
|
|
|
|
CButton m_Button;
m_Button.Create("Button",WS_CHILD|WS_VISIBLE,CRect(0,0,100,23),this,1);
m_Button.EnableWindow(1);
Its working
How to create your button?
|
|
|
|
|
|
Is your problem solving? and if you have a variable for your button you can use form it
|
|
|
|
|
>>Yeah, but how do I do that with the designer?
If you want it disabled by default...
Highlight the control, press F4 for the properties window, and change the Disabled property to
TRUE.
Mark
|
|
|
|
|
Alright! That solved it, thanks you two!
Windows Calculator told me I will die at 28.
|
|
|
|
|
Please tell how to change the cursor when i move it into rectangle (100,100,200,200).
Thank you for helping
all for development
|
|
|
|