|
sdancer75 wrote: I can not understand why the XY-coords
are given from the above events, if they are unreliable.
They're reliable but they reflect the cursor position at the
time the message is created and dispatched. Since there's no
WM_MOUSESTOP message, it's not always possible to get the actual
current cursor position from the last received WM_MOUSEMOVE
message.
sdancer75 wrote: check all over the time the GetCursorPos either on MouseMove or LButtonDown events? Is that a slow method?
I personally use GetCursorPos() in all my mouse message handlers.
The mouse is a relatively slow device, so the time it takes to
call GetCursorPos() is insignificant.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you very much Mark,
You saved me from a many hours trying to find what's going worng here.
I thought that it was my bug and I have already spend about 3 days of work trying to fix this, before I ask for help to this forum.
Take care,
Greece
sdancer75
|
|
|
|
|
Hi
Is there any C++ project or toolkit for solving math equations?
or a good article?
www.logicsims.ir
|
|
|
|
|
There's Google , a powerfult toolkit for answering such a question [^].
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]
|
|
|
|
|
sounds like someone's having trouble with their homework
|
|
|
|
|
Indeed.
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]
|
|
|
|
|
I once knew how to do this but not now, can someone put me in right direction...
Putting "Bold Headings" on dialog box without using static text.
it was somthing like setting text property and write text on dialog box using X,Y position.
pls help
Gpat
|
|
|
|
|
if you don't want to use a STATIC control then you have to handle the WM_PAINT message and write the text (possibly using TextOut ) in your message handler.
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]
|
|
|
|
|
Hi all,
i want to use plugins for disigning of buttons in MFC application.
anybody can give me any suggestions or example for this.
thank in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: i want to use plugins for disigning of buttons in MFC application.
Which plug in you want to use?? What exactly you doing ?
See this Section on CP Button Control[^] May be after this you wont need to use any plug in..
Regards,
Sandip.
|
|
|
|
|
Do you want to have a cutomize button?
|
|
|
|
|
yes
i want to button which is looks like vista when appliocation runs on Vista and looks like xp if it runs on XP
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
thanks
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
its our company site
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Those programs are trial or full for download?
|
|
|
|
|
demo's are trial Full version sholud buy from site
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Thanks for info.
|
|
|
|
|
Hi,
I am getting a compilation error while using ConvertStringSecurityDescriptorToSecurityDescriptor ( ). I have included Sddl.h , Have AdvApi32.dll and AdvApi32.lib at correct places. But still getting a compilation error as undeclared identifier.
Thanks....
|
|
|
|
|
MyView wrote: I have included Sddl.h , Have AdvApi32.dll and AdvApi32.lib at correct places. But still getting a compilation error as undeclared identifier.
That is surprising??
What platform you are using??
Regards,
Sandip.
|
|
|
|
|
Hi
How to change back color of a owner drawn list box when it has no item?
www.logicsims.ir
|
|
|
|
|
Take a look at WM_CTLCOLORLISTBOX message within MSDN ...
For You ---->
|
|
|
|
|
Really thanks,
I know that, but you know I want to draw on it, for example wants to fill it gradient.
(Glad to see you're from Iran too!)
www.logicsims.ir
|
|
|
|
|
Hi masters!
-----------
Note the following remarks within MSDN about the above function:
1) WM_KEYDOWN and WM_KEYUP combinations produce a WM_CHAR message.
2) If the message is WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, or WM_SYSKEYUP, the return
. value is nonzero, regardless of the translation.
But in my EXE, it returns 0 even though the message is WM_KEYDOWN or whatever else.
A background:
-------------
I'm writing a system-wide keyboard hook program, so that all key strokes are sent to
an EXE within a DLL (PostThreadMessage()) ...
But into the EXE, TranslateMessage is returning 0 all time ...
|
|
|
|