|
The code you posted is horribly formatted and missing < and > symbols and what's between them.
Steve
|
|
|
|
|
Please post code snippets..
Regards,
Sandip.
|
|
|
|
|
I wrote a simple app that hooks WH_MOUSE events. The application receives a stream of events when the mouse is moved over most windows. However it does not get any events from:
- the Command (MSDOS) application
- the menu bar of old (16-bit?) applications such as Calculator or Paint.
- the title bar of all apps
How can catch mouse messages in these cases?
--
Goop
|
|
|
|
|
Please mention the problem clearly.
|
|
|
|
|
Mmm, I thought I had
It seems that the Command/MSDOS window is capturing mouse movements before my application. As my application was started from that window, I assumed that my app would be earlier in the hook list and therefore receive messages first. But the app does not see the mouse movements for the Command window.
I guess the problem goes deeper, because I want to see ALL mouse movements, wherever my hook is in the hooks list. So I guess I need to get the messages before any hook functions.
Hope that is clearer
Regards
--
Goop
|
|
|
|
|
Command/DOS applications do not have a message loop.
But you should get mouse messages on title bars of Windows apps using this hook.
If not you should try WH_MOUSE_LL .
«_Superman_»
|
|
|
|
|
Thanks for your reply. You are right, messages really are received on title bars. I needed to test for the Non-Client messages, WM_NCRBUTTONDOWN, as well as for WM_RBUTTONDOWN. This also fixes it for the menu bars of Calculator/Paint.
But the Command/MSDOS window still somehow captures messages - I see none of them, even for the title bar. How does it do this (ie. which API)? Does this mean that keyloggers also cannot intercept text typed into the Command window? This would imply that an application should grab the keyboard events directly (as in Command) to avoid snooping, eg during password entry.
Regards
--
Goop
|
|
|
|
|
Hi
In my project, the controls have to be created depending on the user input, which will be made at the beginning.
Depending on the user input, the controls have to be created at Runtime.
How to create Resource ID for Form View, Static Control, Tool Bar, Menu, Dialog Bar in VC++ at the Runtime?
Thank you
Preethi
|
|
|
|
|
Does this article[^] help?
Regards,
Sandip.
|
|
|
|
|
Why not just create them at design time, and then enable/disable them accordingly? It's much easier that way.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hello,
i use a function MultiByteToWideChar() to show Unicode letters, Arabic and Cyrillic letters are showed properly,
but not the Chinese or Korean or Japanese letters!
I try to show text from Internet in my list control, but they are only a funny square showed instead of letters ,
does any one have suggestion how to start to solve my issue?
Thanks for any help
termal
|
|
|
|
|
Are you sure the font in the edit control has these characters? You can use the charmap utility to check.
Also guessing, did you create the control using CreateWindowW? Maybe the control is being all ASCII-y ?
Try making your project UNICODE (which you should anyway) and see if the problem goes away?
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi,
first thanks for answer!
I create a dialog with the designer of VS and the CListCtrl i added from a toolbox!
And project is in unicode, other languages are showed normal!
"Are you sure the font in the edit control has these characters? You can use the charmap utility to check"
This can be a reason tor my problem, i use Tahoma as font for all my dialogs and i can't find any chinese character in charmap utility!!
regards
termal
|
|
|
|
|
You may need to install the language pack for Asian languages.
«_Superman_»
|
|
|
|
|
Hi,
yes i found that they are not installed by default!
regards
termal
|
|
|
|
|
Hi,
i found my font it's Arial Unicode MS
bye
termal
|
|
|
|
|
I want to change the image of the toolbar button, that is, When I cilcked one tool bar button then I want to change the image of the button. So I have used the following code, but it saying some runtime error.
CToolBarCtrl &ctrl = m_wndToolBar.GetToolBarCtrl();
ctrl.AddBitmap(3,IDB_BITMAP3);
Pls provide me some solution,
|
|
|
|
|
try using LoadImages(). and what is this AddBitmap?
|
|
|
|
|
gopalraja wrote: ctrl.AddBitmap(3,IDB_BITMAP3);
This function is used to add bitmap to imagelist associated with toolbar control.
Look at function SetImageList, and use it according to your need.
Images on toolbar shown according to imagelist associated with that toolbar control.
|
|
|
|
|
Hi,
You can set cold and hot images for the toolbar.
This is the sample code.
CImageList img;
img.Create(IDB_HOTTOOLBARS, 22, 0, RGB(128, 128, 128));
m_wndToolBars.GetToolBarCtrl().SetHotImageList(&img);
img.Detach();
img.Create(IDB_COLDTOOLBAR, 22, 0, RGB(255, 255, 255));
m_wndToolBars.GetToolBarCtrl().SetImageList(&img);
img.Detach();
Here m_wndToolBars is the CToolBar object.And IDB_HOTTOOLBARS and IDB_COLDTOOLBAR are the Bitmap imges in the resourse editor.
Regards
Arun
|
|
|
|
|
I want the source code for getting list of software installed in a system.
|
|
|
|
|
You had posted same question previously for which you got answers.. What is problem with those answers
Why reposting again?
Regards,
Sandip.
|
|
|
|
|
|
I am working on a 64 bit system (windows XP).I have a problem in launching an MFC dialog, that contains an active-x control (MSFlex Grid control).My project builds successfully without any errors.But when i try to launch this dialog, i get an error "Debug Assertion Failed".My Msflxgrd.ocx file is registered successfully.I don't understand where the problem is.Do let me know where the problem is.Please help me out ......
Thnx in advance.
|
|
|
|
|
This problem can arise if the dialog application is build for x64 and the flex grid is a 32 bit activeX.
«_Superman_»
|
|
|
|