|
Actually, the proper way to change the effects settings is with SystemParametersInfo(). That API automagically handles broadcasting a WM_SETTINGCHANGE message so all windows reread the settings.
--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
|
|
|
|
|
Thank you! With some tweaking I got SystemParametersInfo() to send the proper message and get it to update.
|
|
|
|
|
One more thing that is odd...
I did a registry diff before and after changing the icon size with the Display Panel and the results are the same as when I run my program. Fine, good, great.
But...When I click on the start menu (after my program) the icon spacing is all messed up. It is adjusted in the registry, but there doesn't seem to be a way to make it respond. The desktop icons work ok. The only thing I can think of is it needs sent an update message. Any ideas?
|
|
|
|
|
I sent an update to NONCLIENTMETRICS and it reset the start menu as well.
|
|
|
|
|
What is the good access or the good method for read information about the semaphore of an other application with ZwQuerySemaphore ????
Thank you for your help
Mailto:nbd@aql.fr
Nicolas
|
|
|
|
|
I need a windows based RTOS simulator(include source), any clues?
|
|
|
|
|
I have an application, prog B, that starts minimized.
Another program, let's say winamp, currently has the focus.
My program - prog B should be able to retrieve the .exe name based on whichever application that currently has the focus, in this case, winamp.
I'm not sure how to go about and tackle this problem. Can somebody please help me out?
Environment - Windows 2000
Thanks in advance,
|
|
|
|
|
Search for GetWindowModuleFileName on MSDN, it should work only on Win2000 though.
You may use it with GetForegroundWindow to retrieve the exe filename associated with the current foreground window.
Cheers,
Paolo.
|
|
|
|
|
If you want to track application's exe name based on current focus, I recommend you write small DLL to hook some events. You may need to hook couple of them like WH_CBT and WH_SHELL using SetWindowsHookEx(). From my experience, you need serious testing to make sure your DLL is really tracing focus movement. There are many ways to move focus to another application and covering all of them may need long time work.
Once you have that DLL that will attach itself to exe by hooking function, then the filename of that exe can be obtained by GetModuleFileName(). Even if GetModuleFileName() won't work right for some application, you can use very powerfull ToolHelp32 functions to;
1 enumelate all processes
2 find process ID that matches what GetCurrentProcessId() returns
Just for your info, if you unfamilier with DLL which attaches itself to exe by SetWindowsHookEx(), then take a look at Matt Pietrek's article MSJ No 12 Vol 6 (MouseWheel.DLL).
Have fun!
reiko
|
|
|
|
|
Hi, I have built a SDI by using MFC, and I just follow the instruction
from MS help
A class was added to the project, and the control was dynamically created in the OnCreate handler of the application's View class.
CRect rect;
GetClientRect (&rect);
// Create the control.
m_pBrowser = new CWebBrowser;
ASSERT (m_pBrowser);
if (!m_pBrowser->Create(NULL,NULL,WS_VISIBLE,rect,this,NULL))
{
TRACE("failed to create browser\n");
delete m_pBrowser;
m_pBrowser = NULL;
return 0;
}
// Initialize the first URL.
COleVariant noArg;
m_pBrowser->Navigate("www.microsoft.com",&noArg,&noArg,&noArg,&noArg);
return 0;
But the program runs without anything. Can anyone give me some
suggestions? Thanks!
|
|
|
|
|
The first parameter to Navigate must be a BSTR. You're using a plain string. Change it to _bstr_t("http://www.microsoft.com")
--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
|
|
|
|
|
Does anyone have or know of any code source that allows interaction between a server running 2000 and the banking/credit card processing centers.
I am planning to intergrate, in addition to the normal credit card transactions, a debit card option for those of us that don't want to, or can't use their Credit Cards so any code that I could use or rework to build up my application would be greatly appreciated.
Thanks.
|
|
|
|
|
Hi
How can i get the word under the mouse pointer in webbrowser
control,with any event (mouse over,...)?
(in vb or vc)
tnx
|
|
|
|
|
|
How to send and receive files through multicast file transfer using windows media server through V++.
m prabagar
|
|
|
|
|
I have a program that can be run as an NT Service or as a Win32 application. Is there any way to tell whether the program was started by the Service Control Manager or by a user (ie. double clicking an icon). The only difference I can find at the moment is in the STARTUPINFO details. When the program is running as a service the wShowWindow field is set to SW_HIDE and when the program is running as a Win32 Application the wShowWindow field is set to SW_SHOWNORMAL. Can anybody provide any info?
Thanks for any help you can give.
Steve.
|
|
|
|
|
I need help to solve one playlist program using linked list.Please help me as its very important for me.
Dee
|
|
|
|
|
The STL list template is the easiest and most portable way to handle linked lists in C++.
|
|
|
|
|
here's the link for it:
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=35902#xx35902xx
thanks
|
|
|
|
|
Hi,
Looking for any sort of code that would popup a small message to the user. The msn messanger has a really good one, when you have new mail at your hotmail account, or you receive a message from somebody new.
I want to have an app that polls a remote app(via Internet) and when it picks up a string message from the remote server, it displays it on the desktop of the client.
|
|
|
|
|
Hello all,
Most of you must have seen a double-ridged splitter bar like in vc++ ide.
how do I draw such a bar?
Hush..Hush.. thought I heard you calling my name now...
|
|
|
|
|
|
Hello
How do i find the "default" font and height of the HeaderCtrl in a ListCtrl.
Kind regards
Henrik
|
|
|
|
|
If you create a hidden ListCtrl you can use GetWindowRect() to get the dimensions of the header control and GetTextMetrics() to get the font details.
Hope this helps.
Steve.
|
|
|
|
|
I have two Dropdown listboxs and one grid
I select something from the first list and the second list will have new selections and after I select something from the second list the Data in the datagrid will change, all this without moveing from one page to another, it all has to happen in one page DYNAMIC!!
What is the simplest way on doing it?
DHTML,ASP.NET,ASP or ActiveX
I need a sample and some source code PLEASE!!
|
|
|
|