|
::LoadImage
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Have you considered using http://www.codeproject.com/buttonctrl/cbuttonst.asp[^]
I think it is much better than CBitmapButton, especially when used in conjunction with LoadImage.
Michael
Programming is great. First they pay you to introduce bugs into software. Then they pay you to remove them again.
|
|
|
|
|
hi folks,
I have an application which receives messages from mouse(by clicking on certain buttons)and keyboard(by typing key/key combinations).when i receive a message,is there a way by which i can know whether it has come from keyboard or mouse(many of the messages come from either of them)?
Help required urgently..
regards,
virajqw
|
|
|
|
|
How are you recieving them together ? Keyboard stuff comes from WM_CHAR, WM_KEYDOWN and WM_KEYUP. I think from memory the mouse ones are WM_LBUTTONUP, etc and WM_MOUSEMOVE.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
you can check MSG.message for detail
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
Mouse messages have ids from WM_MOUSEFIRST..WM_MOUSELAST range. Keyboard messages fit into WM_KEYFIRST..WM_KEYLAST.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
hi,
Think i was not very clear about what i actually wanted.I know that WM_MOUSEFIRST..WM_MOUSELAST are from mouse and WM_KEYFIRST..WM_KEYLAST are from keyboard.But suppose there is an option in menu which can be selected through keyboard and mouse and the same option is available as a button on toolbar and i'm calling a common function after the option is selected,then how do i determine that the option was selected through keyboard or mouse.besides are these key and mouse events fired for accelerators as well?
thanx,
viraj
|
|
|
|
|
You can use wParam and lParam accompanying WM_COMMAND message to determine if it came from accelerator or menu. Have no idea about toolbar, however.
If you want to perform different actions for menu/toolbar/accel selection, why don't you assign different command IDs?
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
I have Main window.Inside that main window there are many child windows.but if i click any child window,the window title bar is not blue in color,but i can move the child window and the messages are received.But my title bar is not showing that it is active.How to make active when i just click on the title bar.
|
|
|
|
|
I have a MFCGridCtrl in a CFormView. I want to enable tooltips for the column header of the Grid when mouse moves over it. Currently, tooltip is displayed by default when textsize exceeds column width. But I want to have it always(evenif column width is more). Can anyone help me.. its too urgent..
|
|
|
|
|
|
Hi All,
I need to enable the option of password meets complexity under the password policy of the windows 2000 programmatically.How do I do this task.
Is there any API available.
Kindly Help.
Thanks
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
You mean, must be six characters long ? How do you have it stored ? All string classes have some sort of length function. If you want numbers AND letters, you'll have to iterate over the string looking for both.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I'm not taking the password programmatically.I need to enable the option in the Windows 2000 settings programmatically.The setting is in the Administrative Tools,which I need to enable thru my program.
Learning is a never ending process of Life.
|
|
|
|
|
Hi, I have a little system tray application. Now I need to add a options dialog and I also like to give it a hotkey.
How can I add a accelerator to my main frame? I never did this before. When a hotkey is pressed it should send a WM_COMMAND (wParam ID_APP_OPTIONS) to my main frame (which then will create the dialog).
Thanks for help!
|
|
|
|
|
There should be an accelerator table in your ResoureView tab. Use the editor to add a new key with the id ID_APP_OPTIONS. If there isn't a table there, add one and make sure its id is IDR_MAINFRAME.
--Mike--
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
i have an int and i want to convert it int CString and write it into a file through CFile or file pointer how to write it?
any body plz write the complete syntex of it ?
r00d0034@yahoo.com
|
|
|
|
|
CString s;
int i = 0;
s.Format("%d", i);
CFile, you're on your own. MFC file stuff is crap, I use iostreams.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
One solution for writing a CString to a file using MFC is CStdioFile.
CStdioFile output(filename, CFile::modeWrite | CFile::modeCreate);
output.WriteString(CStringObject)
Kuphryn
|
|
|
|
|
Please help me hoe to Override ExitInstance() in VS.net?
|
|
|
|
|
you could write an addin for VS.NET and act on the
OnBeginShutdown event.
But I don't think it's possible to override ExitInstance directly.
|
|
|
|
|
any body tell me how to convert a int into CString
so that i can seen the character of int ?
any body tell me how to convert a int into String
so that i can seen the character of int ?
r00d0034@yahoo.com
|
|
|
|
|
CString s;
int i = 82;
s.Format("%i",i);
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
im developing with visual c++.net.. and am wondering how to set the background of a label so that it is transparent.
xai
|
|
|
|
|
ummm, sorry
from->BackColor = Color::Transparent;
i should have known..
xai
|
|
|
|