|
Well, a few days have passed since he last asked. I suppose it's possible that the whole way Windows handles messages might've changed since then
|
|
|
|
|
You don't understand me!!! I know WM_LBUTTONDOWN, WM_MOUSELEAVE and all mouse messages!!!
But I need to get mouse flags wherever in code... Ouf of CWnd object, simply wherever
|
|
|
|
|
What I was trying to say was that there's nothing there to tell you what the mouse is *currently* doing, just messages that happen when the status changes.
All you need to do is have a boolean member in your class - in your LBUTTONDOWN handler, set it to true, in MOUSELEAVE set it to false
|
|
|
|
|
But I don't do this!!! Because if MOUSELEAVE then left mouse button don't to be UP...
Simply, I want to attest whether mouse left button is UP or Down when mouse is out of window (CWnd object)... You understand me???
|
|
|
|
|
You might need to use the SetCapture function.
Steve
|
|
|
|
|
that's why you ask exactly the same question once again ?
you don't provide more infos... you just did a copy/paste of your previous question. hey, we're not geniuses. come on, help us !
|
|
|
|
|
|
You might want to look up the following:
- WM_LBUTTONDOWN
- GetKeyState
- GetAsyncKeyState
Steve
|
|
|
|
|
Thanks Steve, GetAsyncKeyState() is correct...
Thanks very much
|
|
|
|
|
Hello,
I'm working to define a toolbar. I would like to modify the handle.
I have drawn a picture, put it inside the toolbar as handle but I could manage the picture as a handle. I Used a CStatic and then loaded a Bitmap into it.
Does somebody know how to get the picture ID to after allocate it as handle ?
titi
|
|
|
|
|
hi pals,
i facing problem in enableing the scroll bars in CXListCtrl.
if any one worked on this plz help me out.
I am creating ctrl from another file, and passing listctrl obj to that corresponding page. after adding the data, the scroll bar will be disabled state..
can any one suggest options to enable scroll bar?
Thanx in advance.
Parthiban
|
|
|
|
|
can i alter an extension .jpg or bmp to extension .ico? thank u
Li Zhiyuan
8/06/2006
|
|
|
|
|
Yes, you can, but you may not.
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
hi,
hm ... I'm not sure now ... you want to convert a file or only change filename (or rather extenssion) ?
-----------
Mila
|
|
|
|
|
How many new threads do you need to create?
Ok, you obviously want to use your own icon, but you haven't actually made an icon yet.
Here's what to do:
* Right click on your resources in the resources view and select "Add resource..."
* Select "Icon" from the list, and click the "New" button
* This will take you to the icon editor, with a default 32x32 16 colour blank icon created for you. Draw in here, or paste in an image from Paintbrush, or anywhere else you can find an image
* You'll probably want other sizes - from the Image menu select "new image type" and you can add a 16x16 small icon (for the titlebar / taskbar) or 256 colour icons (which look nicer if you're pasting in an existing image), or larger icons (if you want it to look nice in XP)
|
|
|
|
|
Do you need to convert bmp/jpg to icon?Can you be more specific
|
|
|
|
|
Search the internet for a software called "Iconcool editor", it is my prefered choice. This software allows you to create multi sized icons, and is very easy to use. Just create your icon and import it into your resources.
|
|
|
|
|
i mean how to make an extension .ico file by myself, thank u.
Li Zhiyuan
8/06/2006
|
|
|
|
|
use the icon editor into Visual C++ ...
also, stop reposting the same thing again and again. if you have new questions related to the same topic, stay on the same thread.
|
|
|
|
|
you can also you the Paint program that is installed with windows, you can make icons and save it by the ext *.ico, but you have to make the dimesions of width and hight bet 35-50 pixels.
Ahmed Ismail
|
|
|
|
|
Hi guys,
I really really need your help. I have been tinkering with the CWnd timer functions for days now and I really could not understand its concept. I tried doing a "timer-like" simulation using a simple dialog box with just a number that increments. Sounds really lousy but I really just want to do that with the CWnd::SetTimer and CWnd::OnTimer. I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where.
I'd really really appreciate it if you could help me with some explanations, or better yet, a simple code with that dialog box timer i could not complete.
Miss programmer in distress,
waxie
|
|
|
|
|
waxie wrote: I just want to see how it works, what executes when I set a timer duration of 1 second. What goes to where.
Trace into the MFC source code for CWnd::SetTimer .
Maxwell Chen
|
|
|
|
|
Timer uses hardware interupts.
why do you need to know how it is implemented ? why not simply use it ??
|
|
|
|
|
hi,
what is there you just implement the Api called
::SetTimer(...)
::KillTimer(...)
// surf in google you get no of examples.
Think Clever
Uday kiran
|
|
|
|
|