I have created a toolbar that is located at the bottom of my application using the style flag CCS_BOTTOM. The problem is that I also have a status bar located at the bottom and when I use the style CCS_BOTTOM for my toolbar the two controls overlap each other.
I am trying to get the toolbar to be located directly above the status bar. I...
I have a handle to a Menu .
I can change the text of each menu item by using API
SetMenuItemInfo
Now some of the menu's are in bold. I want to change their font to regular.
What is the best way to do that?
...
I've been working on win32, c,c++ for a while. I code on visual studio. Most of the time I see system idle process uses more cpu utilization. Is there a way to allocate more processor cycles to my program to run it faster? I understand there might be limitations from i/o, in those cases this question doesn't make any sense.
OR
did i mis...
How to change the default default audio device for playback and recording in vista programatically ?
Is there any registry setting for it like sound manager in window XP?
Which API does it?
...
Hi,
Is it possible to programmatically uninstall a device in windows and perform a 'scan for hardware changes' programmatically? Is there any VB script that can be used for the same? Or is there any windows APi that can be called to achieve the same?
Please guide.
Thank you
Ananth
...
Hi,
I am working on c# application(Using win 32 dll in my apllication)...I am trying something like this
In DLL(test.dll):
char* Connect(TCHAR* lpPostData)
{
char buffer[1000];
.....
return buffer;
}
IN c# application:
[DllImport("test.dll", EntryPoint = "Connect", CharSet = CharSet.Unicode)]
[return: MarshalAs(UnmanagedType.LPWS...
I ve designed a win32 service in windows XP its working fine. but the problem i'm facing is that it's not working properly in windows 2000 platform. that is stopping the service restarting the service. is there any setting or need to change in code to be done.
...
Hi,
we are using c# NativeWindow and overriding WndProc method to intercept the widow messages.
Is it possible for a owner window(NativeWindow) to know when its child window(dialog window) gets activated when user presses alt+tab or click on the window in task
...
I've heard (well read, at http://www.ddj.com/windows/184416861), that it's possible to set custom properties on a Win32 window.
The trouble is, the download for the article above is on an ftp server that won't let me in.
As a bit of background info, I have a .NET app. The main window is registered to handle custom window messages. Fro...
I want to launch default e-mail client application via ShellExecute function.
I.e. I write something like this:
ShellExecute(0, 'mailto:[email protected]?subject=example&body=example', ...);
How can I encode non-US characters in subject and body?
I can't use default ANSI code page, because characters can be anything: chinese chara...
I want to receive a notification in my C++ application when a screensaver is about to start. I tried listening to WM_SYSCOMMAND messages with wParam == SC_SCREENSAVE which some people think should do the trick:
http://bytes.com/topic/visual-basic-net/answers/349073-know-when-os-goes-into-screen-saver
That didn't work. Spy++ even showed t...
I have a pretty plain Win32 application that links against a library I wrote that contains resources in an .rc file. The problem is that the .exe doesn't seem to find those resources. But if I move the .rc file from the library project to the .exe project resource loading works.
What step am I missing? I have the impression I have to c...
Hi,
When window A is show, I want to show another none-modal popup window B, but:
I don't want window A to become inactive due to window B becomes the front window;
I want that when window B is focused, I pull down a combo box control on window A with one click (generally you have to click twice, one for moving the focus to window A a...
I have an application that uses the winInet classes - #include <afxinet.h> and the wininet.dll
I would like to statically link the WinInet function calls in my application as well as the dll, so I followed these steps. I then copied the wininet.dll into my project directory, as I read here.
Upon building I get the following error -...
I need to install OpenCV on Win32. I do not have it installed currently. I downloaded OpenCV-2.0.0a-win32.exe and ran it. What the heck do I do now? There are no .lib's and whatnot.
I found some instructions for building the release using cmake at http://opencv.willowgarage.com/wiki/InstallGuide . I downloaded the latest and greates...
Is it possible to invalidate a window without invalidating its children? (display invalidation to cause a repaint of the parent window, but not redraw its children)
This assumes that the parent window already has the "clipchildren" style, so that its painting wouldn't inherently invalidate the children.
...
I am integrating a third party C-based SDK into my .NET application. The application will run as a Windows service on a server, so it should not interact with the user in any way.
Unfortunately, in certain error conditions it insists on calling MessageBoxA, presumably to report that something bad has happened. When this happens, the s...
I based these two conversion functions and an answer on StackOverflow, but converting back-and-forth doesn't work:
std::wstring MultiByteToWideString(const char* szSrc)
{
unsigned int iSizeOfStr = MultiByteToWideChar(CP_ACP, 0, szSrc, -1, NULL, 0);
wchar_t* wszTgt = new wchar_t[iSizeOfStr];
if(!wszTgt) assert(0);
Mult...
I am trying to redirect mouse inputs on my Windows 7 application to some other window.
If I do this when I get WM_LBUTTONUP, it works (where MouseDown and MouseUp are SendInput functions in Win api):
SetForegroundWindow( other window );
SetCursorPos( somewhere on the window );
MouseDown();
MouseUp();
SetCursorPos( back );
SetForegroundW...
I need to check if any files in a folder is open by other applications or not. Unfortunately, if a file is open, the GetFileAttributesA() return wrong values. Is there a workaround for this or am I doing something wrong ?
...