|
|
You know that you could also use Spy++[^]. Shows you window messages and even more.
|
|
|
|
|
Why do you need to do such a thing? What exactly are you writing? Can't you just have App A to send only relevant messages to App B instead?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
My Basic requirement is to monitor system standbay/shutdown message from window .But i need to do that in AppB (which is a non window based application). But application AppA is window based so i am receiving all these StandBy/shutdown messages.
So if there is a way to check when system goes shutdown from non-window based appliacations , than my need will be satisfied.
Birajendu
SonicWALL
Bangalore
India
|
|
|
|
|
why don't you add a window to your non-window app, so you can get window messages?
you could make it invisible, or locate it outside the desktop area.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
use SetWindowsHookEx Function,it can get the message which passed to the target thread you want to watch
|
|
|
|
|
Hi al
how to work on timer in vc++ in vs2005...
and how to go class wizard?
i remembr ctrl+w in vc++6.0,but in vs2005 it not works..can anyone sugest?
Regards
Gany
|
|
|
|
|
1. open the dialog in the resource editor.
2. open the 'Properties' window for the dialog
3. at the top of that window is an ugly little button called 'Messages', click it.
4. that will show a long list of messages. find "WM_TIMER" and click in the white space to its right. an "Add Handler" option will appear.
intuitive!
|
|
|
|
|
Right key to the class,click "attribute", --->"message"--->"WM_TIMER"
::Settimer()
|
|
|
|
|
Hi all
I am trying to a code a vc++ project where the xml data needed to be added in tree control.can any one help me on this?
I was earlier using vc++6.0 now changed to VS2005.Is there any difference in usign vc++ between thse two..?
Regards
Gany
|
|
|
|
|
can anyone help me
thnks in advance
|
|
|
|
|
hellogany wrote: I was earlier using vc++6.0 now changed to VS2005.Is there any difference in usign vc++ between thse two..?
What happens when you try it?
|
|
|
|
|
Hi Members,
I wanted to know if it i possible to protect a folder using Visual C++ such that it asks for a password when we rename, cut, copy, move or drag and drop and cd to the directory from command prompt.
Thanks,
Raj
|
|
|
|
|
See documentation [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
how to show static control on picture control in dialog box in picture control i use bitmap but when run it never shows static control on picture control. can anyone tell me how to show static control on picture control
Project Engineer
|
|
|
|
|
Do you think the static control is below the picture control.
If so you can use BringWindowToTop or SetForegroundWindow to bring the static control on top of the picture control.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I have context menu on dialog box now i want to set background color of context menu.please anyone can tell me how to set background color of menu and context menu as well as submenu.
Project Engineer
|
|
|
|
|
Hi,
i tried using
BEGIN_MESSAGE_MAP(CMyDlg, CDialog)
ON_WM_NCCALCSIZE()
END_MESSAGE_MAP()
void CMyDlg::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp)
{
CRect& rc = (CRect&)lpncsp->rgrc[0];
rc.top += 20; // Increase the height of tittle bar
CWnd::OnNcCalcSize(bCalcValidRects, lpncsp);
}
but the issue is when i run the exe in which i used the above code it works in one system(ie clientarea for the dialog is decreased) but in other system client area was not decreased....
Please try to help me out....
|
|
|
|
|
Is there any way I can tell windows not to update my layered window when the window below the layered window is updated. Right now, it is causing lot of flickering in the layered window. I want to somehow control the updating of layered window.
Please suggest.
|
|
|
|
|
Hi friends
I have a bunch of resources name store in a file and i load these resources name in string
CString strRes = "IDC_LIST";
Can i use like this
GetDlgItem( strRes )->ShowWindow( SW_SHOW );
thanks in advance
-kk.tvm-
|
|
|
|
|
no it is not possiable bcoz GetDlgItem do not have string type of parameter. You need to mapping with string with resource.
|
|
|
|
|
The resource name (IDC_LIST) is actually an integer value which is #defined.
So you cannot use it like a string ("IDC_LIST").
If look at the signature of the GetDlgItem method[^], the parameter to the function is an integer value.
So you should be storing the integer values in the file rather than the names.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Sir,
I am Venkatraman working in HCL and I read your article (Undelete a file in NTFS) on 09/10/2009 and I am having a doubt in it my question is this "what are u trying to explain in attribute field in UnDelete.cpp file and what is the actual process of the atrribute field in the Undelete window"
Waiting for your reply
|
|
|
|
|
You need to post your question on the article page.
|
|
|
|
|
Go to the page Undelete a file in NTFS[^], scroll to the bottom and click New Message to post your question.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|