|
Hai,
I am working on win32 and I want to know how to set mouse right button click to click my buttons on runtime.Do anyone have ideas..
Thanks a lot...
|
|
|
|
|
? Call your button on click fucntion when the mouse right click?
<italic>Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
|
|
|
|
|
Will you explain little bit more. I mean what you want to do, once user click on right or left click.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
Can anybody let me know if there is a way to change the caption name on a button (if you were using another language), without changing the dialog.
In other words can you read the caption names from a file?
Many thanx
|
|
|
|
|
Yes, you certainly can. After reading the button's caption from the file, use SetWindowText() to change its caption. Many apps that allow you to switch the GUI language at run time (not just startup time) use this method.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
The label of a button can be set with SetWindowText . In order to get the HWND of a given button, you might want to use GetDlgItem . Is this what you're atfer?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Want a Boost forum in Code Project? Vote here[^]!
|
|
|
|
|
I would like to SEE THE CODE that will diaplay text to a device context (i.e. the window's client area) with each letter a different color.
Can I do it w/ a CString?
How to use the DrawText or TextOut call to get each letter a different, possibly random RGB() value?
|
|
|
|
|
CDC::SetTextColor ... that should be a VERY good start ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
how to receive non client area events using system wide mouse hook?
i am able to receive the event.But sometimes it won't works.
when i move mouse the sometimes occurs but sometimes not why?
can anyone help me?
see following Mouse hook Procedure i'm using it in dll file.
LRESULT CALLBACK
SpyGetMsgProc(
INT hc,
WPARAM wParam,
LPARAM lParam
)
{
PMSG pmsg;
PCWPSTRUCT pcwps;
pmsg = (PMSG)lParam;
if(pmsg->wParam ==WM_NCLBUTTONDOWN)
MessageBox(0,"ncl wp","",0);//this shows only somtiomes
if(pmsg->message==WM_NCMOUSEMOVE){
if(pmsg->wParam ==HTCAPTION)
MessageBox(0,"ncl message","",0);//this shows only somtiomes
return CallNextHookEx(NULL, hc, wParam, lParam);
}
|
|
|
|
|
Is SetCapture() of any help?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
If 'hc' is less than zero, the hook procedure must pass the message to the CallNextHookEx function without further processing and should return the value returned by CallNextHookEx. You should not even try to interpret the incoming data if 'hc' is less than 0.
Did you hook WH_MOUSE_LL or WH_MOUSE ?
|
|
|
|
|
I want to rename a file to have a Unicode name using Windows Base Services. I thought MoveFileW(wSrc,wDst) would do this, but since the source file name is not Unicode, I can't get MoveFileW to recognize it. I have tried converting the source name to Unicode. MoveFileW() reports no error.
|
|
|
|
|
OK, MoveFileW() really DOES work.
When copying UTF8 characters to a wchar_t array, be sure to call them unsigned. Otherwise the UTF8 characters >127 will sign-extend to the high byte of the wchar_t.
|
|
|
|
|
I've been trying to figure out how to Programatically shutdown AIM. I need to do it safely without just terminating the proccess. I've been trying to snoop out what messages it's sending an stuff when the exit command is clicked, but I can't get anything to work. Any help would be appreciatied.
|
|
|
|
|
Have you tried sending the window a WM_CLOSE or WM_QUIT message?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
WM_CLOSE minimizes to the sys tray. I tried WM_QUIT and it made AIM crash.
|
|
|
|
|
There also may or may not be a confirmation dialog to contend with depending on the 'show me again' check box.
|
|
|
|
|
Hello,
Why don't you try "FindWindowEx()" in order to handle AIM window? You can do whatever you want, if you have window handle of AIM.
Regards,
Orkun Gedik
SAP R/3 System & Software Support Specialist
ASTRON
Orkun GEDiK
SAP R/3 Software & System Support Specialist
ASTRON
|
|
|
|
|
I don't have a problem getting the handle to the AIM window. The problem is know what commands/messages AIM is looking for to shutdown.
|
|
|
|
|
can you tel me how can i implement my project as i want to make a program which will respond the caller .wav file or a desired song instead of ordinary ring tone
|
|
|
|
|
|
hi,
i guess here u meant that after establishing a connection to the caller u want some special .wav to play.
that is quite possible. I have done it.
but if u say that u want to replace the existing the ringing tone which noramlly a caller hears when he places a call may not be possible.
|
|
|
|
|
thanks for replying to my querry... can you tell me how to reply a caller with a .wav file which you have already implemented.. i will be highly thankful
|
|
|
|
|
i assume that u jst want to play a wave file. i.e u r clear with establishing connection with the incoming line.
It can be done in 3 ways.
1) the hardcore way is to use the AT command set to establish the connection and then use the Waveform API to play the file.
2) Use TAPI. Once the connection is established, u can configure the waveform audio output to modem and play as soon as connection done. Configuring the waveform o/p to modem can also be done prior to the call.
3) Use SAPI. This might come handy if u seeing this project for some extended features like TTS or speech recognition. Here, also u dont need to use waveform api. SAPI already provides with some wrappers which can be used directly. Also they r pretty easy to use.
Best resource is MSDN.
|
|
|
|
|
Hai,
I'm working on win32 vc++...In my app I have to ignore all the mouse events at specific times..say like there are two buttons and when I click button1 after that I should ignore all mouse events and only my keyboard should work till I click button2.
How should I do this??
thanks in advance..
|
|
|
|