So, I have a plugin to an MFC program. I'm using a mouse event hook (from SetWindowsHookEx) to capture clicks. The host application can have any number of (possibly overlapping) child windows open, but I only want to intercept clicks in a particular child window.
Is there a way to figure out in the hook proc which of the child windows...
The title says it all. I'm looking for a way to do what the equivalent of WindowFromPoint and GetWindowRect do, in Carbon/Cocoa and X11.
WindowFromPoint - http://msdn.microsoft.com/en-us/library/ms633558%28VS.85%29.aspx
GetWindowRect - http://msdn.microsoft.com/en-us/library/ms633519%28VS.85%29.aspx
...
We have been using ddeexec registry entries to handle opening a design from Explorer.
MSDN (about 2/3 way into article) indicates that ddeexec is deprecated, and applications should use IDropTarget instead.
What is unclear to me is how that this actually is supposed to work..
e.g. If I have Foo.exe, which is intended to handle .foo fi...
How can I install a service under a different account than the LocalSystem account using Win32 API?
I am using the following code to install the service. I want to install this service under a different account. The last two parameters take username and password but when I give so it throws an error. Is there any specific way of giving ...
Hi everyone,
I am trying to find good resources on best practices to data replication across memcache servers. What I want to accomplish is that if one of my servers in my pool goes down, the next server in line already has the info set.
I have found "repcached" but since I run a WIN32 test environment, I have been unable to install it...
This is something that makes me fairly perplexed.
I have a C++ file that implements a set of functions, and a header file that defines prototypes for them.
When building with Visual Studio or MingW-gcc, I get linking errors on two of the functions, and adding an 'extern "C"' qualifier resolved the error. How is this possible?
Header f...
when ever i write the following line of code any where in any app i program with delphi
ShellExecute(self.WindowHandle,'open','www.yahoo.com',nil,nil, SW_SHOWNORMAL);
kaspersky 2010 beeps this message
''behavior similar to pdm.hidden data sending. detected''
why is that and how do i get rid of this
note: i am using delphi 2007
upd...
Hi,
I need a way to store a value somewhere for temporarily by say Process A. Process A can exit the after storing the value in memory. After sometime Process B comes accesses the same location of memory and read the value. I need to store in memory, because I dont want the data to persistent across reboots. But as long as the system is...
i want to retrieve the list of user and local service and network service
...
Hi, I am responsible for porting a class from legacy Win32 code to .Net and I have come across a threading model that I'm not sure how best to implement in .Net. Basically the Win32 has one worker thread, which calls WaitForMultipleObjects() and executes the particular piece of code when a particular object has been triggered. This has a...
I want to have a few strings in my c++ app and I want to be able to edit them later in the deployed applications (the compiled exe), Is there a way to make the exe edit itself or it resources so I can update the strings value?
The app checks for updates on start, so I'm thinking about using that to algo send the command when I need to ...
According to the MSDN, you can specify an access type parameter to InternetOpen. Two of the options for the dwAccessType parameter are:
INTERNET_OPEN_TYPE_DIRECT - Resolves all host names locally.
INTERNET_OPEN_TYPE_PRECONFIG - Retrieves the proxy or direct configuration from the registry.
Which of these should I use? I don't kno...
Normally when creating a sub window (WS_POPUP), the child window will become activate and the parent will become deactivated. However, with menus, both remain active. At least I am assuming the menu is active, it at least has focus.
Example: Click on the file menu in notepad, the menu appears, yet the notepad window still looks acti...
How to get the OS version for all windows, at least the name for win95,98,me,xp,vista,7?
Im using visual c++ 2010 and I want to include this feature in a pure win32 app.
...
Hello! I am developing a simple WinAPI application and started from writing my own assertion system.
I have a macro defined like ASSERT(X) which would make pretty the same thing as assert(X) does, but with more information, more options and etc.
At some moment (when that assertion system was already running and working) I realized ther...
Hello! This is a more concrete question that is connected with my previous one.
I have an application that uses a timer. The code is written the way the my WM_TIMER handler call a DialogBoxParam(...) with some custom message handler (let's call it DlgProc).
This is done somewhat the following way:
case WM_TIMER:
{
// Ro...
Hello,
I need to InterOp Win32 code (unmanaged Win32 DLL's and Exe) completely with .NET. I need to call Win32 unmanaged code(DLL exported functions) at runtime i.e (knowing the types of data types in Win32 signatures and need to pass data according to that type at runtime).
This is 100% possible in case of COM. You can convert COM unm...
I am creating a GUI application using C and Win32 api. I would like to know how we can change the default font of the Main window to thaoma. I am comming from .NET background. In .NET if we change the font of parent control then automatically the child controls inherits that font....
Is there away similar to it or do we need to manually ...
Basically I call TrackMouseEvent in my WM_CREATE then I call it again after a WM_MOUSELEAVE but this freezes up my program. Where should I be sticking it? Thanks
...
I see plenty of tutorials and articles showing me how to make a simple windows program, which is great but none of them show me how to make multiple windows.
Right now I have working code that creates and draws a layered window and I can blit stuff using GDI to draw anything I want on it, drag it around, even make it transparent, etc. ...