|
1) what message are you sending?
2) how are you currently sending it to all windows?
3) (prolly related to #1) how do you know they are not recieving the message?
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
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?
|
|
|
|
|
First, i'm not certain that Office applications actually use this setting. I seem to remember at least Office '97 being a bit strange about handling the mouse wheel. What version of Office are you testing with?
Second, you should be able to use the SPIF_SENDCHANGE flag when calling SystemParametersInfo() to automatically send WM_SETTINGCHANGE to all windows.
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
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)
|
|
|
|
|
Alek wrote:
My code is
Once again, you may wish to try adding the SPIF_SENDCHANGE flag to the last parameter. I've never tried it though, so it could just be a bug in Win98.
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
berserkblue wrote:
Build and run it, always press the [ESC] Key, and i found the application automatically expanded it's memory after almost a minute.
Well, i found this rather weird. Could you post the source ? It seems that you´re creating things you´re not destructing. Why are you creating a modal dlg on cancel ? Confirmation request for exiting ?
berserkblue wrote:
Now, i am in a big trouble, because my custom will not pay the money for this kind of "bug".
Don't worry, there is always a solution
~RaGE();
|
|
|
|
|
I have a exe through which I call a function of the dll . I want to debug the dll while i Am passing the parameters to that function throught the exe. I have a code of the dll with me .
Can Anyone suggest A solution for it.
Samir Sood
|
|
|
|
|
I suppose something gets wrong into the dll... if you have the code of the dll, a clumsy solution would be to integrate the function into your main code, and watch the effect. Or make a separate program where you pass the same parameters as in your program (I still believe in the "Same cause, same effects" )
I think however there should be a better way to do it ...
~RaGE();
|
|
|
|
|
But Can u suugest some way of directly doing it.
Samir Sood
|
|
|
|
|
Load the DLL and the exe project into the same workspace. Make the DLL the active project, set your breapoints etc. When you run in debug (F5) point to your exe program as the one to run and go from there.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
what i do is:
open that file of dll into exe in which u wish to go while debuging
u can do it like this
goto file menu option & select open(not open workspace)
then select the file of dll & say ok
if u set break points in that file & then debug the exe the control will go to ur dll file
u can open more then one dll file in exe & also navigate through them using window menu option
surbinsho
|
|
|
|
|
Hi,
I tried to catch a WM_MOVING message in a DialogBar subclass to make it snap to the borders of the mainframe client area when it is floating.
It doesn't work.
Apparently there is another parentwindow (my guess a MiniFrameWnd) built around it when it gets to be floating.
How can I catch or delegate this message in/to my DialogBar ?
Thx
I used to have a life ... now I have a computer
|
|
|
|
|
See: WM_SIZEPARENT
See also: CalcDynamicLayout()
It is possible you will need to use a custom CDockBar class to accomplish what you are trying to do.
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
Hi
if i have a ccombobox and I send it do a setcursel(-1) whatever was in the edit box gets wiped..
how can I stick a string back into it
m_MyCombo.SetCurSel(-1);
m_MyCombo.SetWindowText("hello spotty");
return;
when i run the code, the edit box of the combo doesnt show the string...what do i need to do to make the gosh darn thing behave itself?
cheers
Bryce
|
|
|
|
|
bryce wrote:
if i have a ccombobox and I send it do a setcursel(-1) whatever was in the edit box gets wiped..
That´s exactly what it is supposed to do, so do not worry
bryce wrote:
how can I stick a string back into it
I'd suggest :
m_MyCombo.AddString("hello spotty");
m_MyCombo.SelectString(0,"hello spotty");
Hope this helps...
~RaGE();
|
|
|
|
|
I have Close()'d my CAsyncSocket, but wish to use the same object to restart communications with another socket. How do I go about opening it again? It returs an error, "Descriptor is a file, not a socket."
Thanks.
- Jason
(SonorkID 100.611)
In the beginning, teachers taught the 5 W's: who, what, where, when, why. Now it's just a big damn G
|
|
|
|
|
Hm, my socket objects are dynamic so I just create a new one on request.
If you want to reuse, how abour Close() and then Create() ? Didn't try it, but a quick look into Sockcore.cpp shows no problem.
|
|
|
|
|
stupid me. of course I also reuse some objects:
m_ClientSocket.Close();
if(!m_ClientSocket.Create()) {
m_ClientSocket.Output("** Unable to connect (network error)");
return;
}
m_ClientSocket.Connect(szAddress, nPort);
Greets, Moak
|
|
|
|
|
Thanks! I should've tried something so simple before posting a question. I'm on my way now...
- Jason
(SonorkID 100.611)
In the beginning, teachers taught the 5 W's: who, what, where, when, why. Now it's just a big damn G
|
|
|
|
|
no, it wasn't that simple... I did run into same problem sometimes
|
|
|
|
|
The best way is to get a new object via new.
Everything else makes your application crashing after some time.
i've tried many solutions but that one is the best, but you have to care about deleting at the right time.
Christoph Stock
|
|
|
|
|
Anonymous wrote:
The best way is to get a new object via new.
Everything else makes your application crashing after some time.
Could you explain this problem a little more detailed? I use dynamic and static socket objects, my app runs stable... well, I think it does.
Thanks, Moak
|
|
|
|
|
Anybody can give me a sample code of IE horizontal band (at the bottom of IE)?
|
|
|
|
|
I dont know but the only thing I see at the bottom of IE is a standard statusbar. (IE 5.5 so maybe there is another bar in newer versions)
But the top Bar is a CReBar in case you're wondering.
I used to have a life ... now I have a computer
|
|
|
|
|
yeah..the bar is so common...but what do you exactly mean?
Hey!I am @lex.
|
|
|
|