I added the command in 'Project Options'(Project->Settings->Link tab) but the complier show a warning message 'unrecognized option'???? Could you please tell me how to declare this command ? Thank s lot.
Alek
Posts
-
CLARM /QRxscale in Embedded Visual c++ 4.0 -
CLARM /QRxscale in Embedded Visual c++ 4.0Hi all, Does anyone could tell me where I should write 'CLARM /QRxscale' down in eVC++ 4.0. 'Cause I need to write a app. running in WinCE with XScale CPU. Following SDK reference, I should add this command line to generate code for Intel XScale processor, but I don't know where I should place this line. Anyone can help me? Thanks a lot.
-
WM_RBUTTONDOWN & WM_RBUTTONUP question...I want to redirect mouse button click behavior. When I click the right button in MS Word...etc, I don't want the system to show a popup menu. But when I click wheel button, I want it shows a popup menu like I click the right button. I use Hook(in .dll file) to get the mouse message and then redirect it. In some application, like Internet Explorer, NotePad...etc, the redirection works well. but in MS Word, Excel...etc, it shows nothing. I think maybe it's a MDI question (or not). Does someone could give me some suggestions to solve this bug. Thanks a lot.
-
How to send message to frame window ?Thanks for your help. I tested with Offce 'XP in Win98. It's really a little strange about the mouse wheel. I set 10 line per rotation but it does not work immediately only in the windows with frame windows(like Word, Excel..). In Explorer or Notepad, it works. If I close Word and launch agagin, this setting works. By the way, do you know 'SPI_SETSNAPTODEFBUTTON' parameter within SystemParametersInfo(). It seems not work in Win98. My code is : SystemParametersInfo(SPI_SETSNAPTODEFBUTTON, true, NULL, NULL)
-
How to send message to frame window ?All I want is to change the scroll lines number. I used SystemParameterInfo(SPI_SETWHEELSCROLLLINES,...) to change the scroll lines number but in the frame windows(like Word, Excel..etc), and then I send a WM_SETTINGCHANG message to system-wide windows. 'SendMessage(HWND_BROADCAST, WM_SETTINGCHANG, 0, 0)' But only in frame windows that this parameter don't work. What should I do?
-
How to send message to frame window ?I wnat to send message to every active windows but I got a problem. If the window with child frame(like Word, Excel...etc.), it seems not to get the message which I send. Maybe it's useful to get every frames' handle and send message to every frame. Does anyone know how to get every handles of frames ?
-
Setting the number of lines to scroll in Windows98 ... urgent....helppppp...I want to change the scroll lines number in Windows98(system wide). But it does not work. Could you please give me a hand ? Below is my code: int num = 10; SystemParameterInfo(SPI_SETWHEELSCROLLLINES, num, NULL, NULL); The same code works in WinMe, Win2000 and WinXP. Could you please give me your ideas? Thanks for your help.
-
SPI_SETSNAPTODEFBUTTON in Win98SystemParametersInfo(SPI_SETSNAPTODEFBUTTON, true, NULL, SPIF_UPDATEINIFILE | SPIF_SENDCHANG) Above is my code. It works in WinMe, Win2000 and WinXP but does not work in Win98. Is anyone can give me any suggestion? Thanks a lot.
-
setting scroll lines in WordI used SystemParameterInfo(SPI_SETWHEELSCROLLINES,......) to chanage the scroll line and it works well. But in Microsoft Word, it does not work. Why??? Is this a limitation? Or anyone have any ideas???
-
MAKEWPARAM ???I need my program to send a message which I define. as below: #define WM_MYMSG WM_USER+100; WPARAM wp; wp = MAKEWPARAM((WORD)0x200, (WORD)0x450); ::PostMessage(NULL, WM_MYMEG, wp, 0); I code a .dll to get this message and then to do something. The problem is, in the program, I get the correct wp value, but when I post the message to the .dll file, it get the wrong value. I use hook function to get this message. It get the message but the WPARAM parameter is wrong. Does anyone could give me some suggestion ? Thanks a lot. :confused:
-
Norton AntiVirus and Hook ???Hi all, I have a qiestion about Norton AntiVirus and SetWindowsHookEx(). In Win98, I installed Norton AntiVirus (ver.2000) and my program using SetWindowsHookEx(WH_GETMESSAGE...) to get the mouse message. The purpose of my program is to redirect the mouse button's performance. For example, when I click right button, I don't want system to show a popup menu but I want to simulate 'Enter' key. It works well in all O.S.. But in Win98 and WinMe, if I installed Norton Antivirus, my program will delay about 1 second. I write some values in registry and when I click mouse button, it will open and read the registry key value which I wrote. Is that the main reason to cause the delay ?? But in WinXP and Win2000 don't have this question. Does anyone can help me to check this issue ? If you need my source code to check , please let me know, I'll send to you . Thanks a lot. :confused:
-
setting scroll lines under Win98 ???I need to set the number of scroll lines under Win98 Below is my code. Why it does not work ? int m_nCur; //the number of lines SystemParametersInfo(SPI_SETWHEELSCROLLLINES, m_nCur, NULL, NULL); SystemParametersInfo(SPI_SETWHEELSCROLLLINES, m_nCur, NULL, SPIF_SENDCHANGE | SPIF_UPDATEINIFILE); I set the forth parameter 'NULL' but it doesn't work. If set it 'SPIF_SENDCHANGE | SPIF_UPDATEINIFILE', the system hanged. Why??? Or could you show me sample code??
-
redirecting mouse button ??I used SetWindowsHookEx(WH_MOUSE,....) to get mouse message. After get mouse message(like WM_RBUTTONUP...)I need to redirect it. For example, when user clicks right button, I want call 'Run...' dialog. I know that I need to disable popup menu and then to do what I want it to do. Below is my code: HHOOK glhHook = NULL; HINSTANCE glhInstance = NULL; glhook = SetWindowsHookEx(WH_MOUSE, MouseProc, glhInstance, 0); . . . LRESULT WINAPI CALLBACK MouseProc(int nCode, WPARAM wp, LPARAM lp) { if(wp == WM_RBUTTONUP) { // do something.... ((MOUSEHOOKSTRUCT*)lp->hwnd = NULL; ((MOUSEHOOKSTRUCT*)lp->wHitTestCode = NULL; ((MOUSEHOOKSTRUCT*)lp->dwExtraInfo = NULL; return false; } } but it still show the popup menu and ignore the action I want to do why??? Is anybody can give me some suggestion?
-
Need help....Mouse HookI need to disable the original mouse behavior and let it to do some action that I want it to do. For example, when user clicks right mouse button, I want it to simulate a 'Enter' key but not to show a popup menu. I use SetWindowsHookEx(WH_GETMESSAGE,....) function to get the mouse click message like WM_RBUTTONDOWN, WM_MBUTTONUP...etc. and then return false to prevent the message into the hook chain again. It really works well. But under Miscrosoft Office(Word, Excel..), it always run 6 times. For example, if I simulate the right mouse button to 'Backspace' key, everytime I click right mouse button, it runs 6 times. I think it's not good, it should only run once, right??? Could anyone help me to solve this bug??? Thanks a lot. :confused: