|
Okay. I'm localizing it to trigger in a certain rectangle. How can I ensure that the help wil alwayf show? I use getwindowrect to setup the region. I do understand your explanation, but now need a workaround. Thanks for the response!
Appreciate your help,
ns
|
|
|
|
|
As always, use TRACE and ASSERT to verify that your code is actually being called, the menu coordinates are valid, and the popup menu is successfully loaded. These are simple debugging techniques that will help point out the problem.
Suggestion: don't put a breakpoint in the popup code, as this could screw up the coordinates and the R-mouse button handling during debugging.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
It may be too much effort, I don't see how you can get around the kernel scheduler / main windows OS message pump to totally ensure you will get a precise mouse pointer location, perhaps in the embedded versions of Windows...
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
Maybe ::GetMessagePos() can help you here? Called in you OnContextMenu() , it returns the position of the mouse when the message was generated instead of where the mouse is right now.
|
|
|
|
|
Sometimes one forgets the simple API calls in life
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
What value will dwMajorVersion (OSVERSIONINFOEX ) have if my app is running on XP?
I don't want my app to be run on a Win9x system, only on Win NT, Win 2000 and Win XP.
Can I just check if dwPlatformId is equal VER_PLATFORM_WIN32_NT ??
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
From MSDN:
dwMajorVersion
Major version number of the operating system. This member can be one of the following values. Operating System Value
Windows 95 4
Windows 98 4
Windows Me 4
Windows NT 3.51 3
Windows NT 4.0 4
Windows 2000 5
Windows XP 5
Windows .NET Server 5
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
Rickard Andersson wrote:
Can I just check if dwPlatformId is equal VER_PLATFORM_WIN32_NT??
Yes.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
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
|
|
|
|
|
How to simply and only add color to a button and a CEdit control?
Thanks
|
|
|
|
|
OnCtlColor() might be the answer. Good luck!
|
|
|
|
|
With MSVC6, how can I update classes without deleting myproject.clw (plus recreate after restart wizard)? The wizard's data seems not to be updated automatically.
thanks in advance!
|
|
|
|
|
Is there any problem deleting myproject.clw? I thought deleting is the easiest way. If you feel unsafe, you can save a copy as myproject.clw.bak.
|
|
|
|
|
lucy wrote:
Is there any problem deleting myproject.clw?
no, just anoying
After I found out you can save the workspace without restarting VC (or all added files will be lost after a Windows crash), I thought even the wizard can be "forced" to be smart.
|
|
|
|
|
I wanna start WWW service and FTP service in IIS.. with MFC (or WinAPI.. whatever)..
so i made a routine to start / stop IISADMIN service and W3SVC, MSFTPSVC in Windows 2000 advanced Server.. but it didn't work for starting IIS....
What do i do for stating IIS?
I guess an API would be in MSDN... but i haven't found it yet...
Help me plz
|
|
|
|
|
There's a Starting a Service[^] sample on MSDN. Basically, you'd be doing the equivalent of hitting Start Menu | Run typing net start w3svc , but using the StartService API.
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
First, thanks for your reply...
but.. I mean...
Already I used StartService API and success using it..
I wanna make running WWW service in IIS..
for example..
If I try to connect localhost with web-browser, the index page have to be seen....
But Running IISADMIN service and W3SVC service is not enough... (i can't connect my localhost with web-browser)
maybe it needs something more.....
|
|
|
|
|
Perhaps you need to look deeper into it. It works when you do it manually?
BTW, you only need to start w3svc, iisadmin will start on its own if you do that.
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
Well.. i guess so... (^_^)
Anyway... thanks for your answers
Have a nice day.
|
|
|
|
|
In need to perform the initialization of a window derived
from CDialogBar. Is there a method like OnInitlDialog (CDialog)
in CDialogBar ?
I have tried to use OnCreate method, but when OnCreate is called
DDX variable doens't exists jet!
|
|
|
|
|
I init my dialog bars the first time they're shown (override OnShow() ). Same with modeless dialogs.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hello,
i want to leave the CButton ( Pushbutton ) in pressed state until
i press him again. How can i solve this problem ?
Thanks !
Marco
|
|
|
|
|
Use a check box control instead. And make sure the "Push-Like" property is checked.
How low can you go ? (MS rant)
|
|
|
|
|
Ahhhh, Thanxs a lot !
Marco
|
|
|
|
|
I have a control which contains an array of CDialogs. They can be expanded or collapsed. When expanded, and if there are many of them, there is a strong need for a scroll bar. We've implemented a scroll bar and the functionality is great, but the drawing/redrawing makes it look pretty bad.
It's a kind of list control... When the items are collapsed, they are only a few pixels in height. When the user expands any of them, a gap is inserted after that item - enough to draw in the dialog which it represents... It's basically an enhanced version of the "Rollup Control" found at:
RollupCtrl Article
Currently, we're using MoveWindow() for each item. We've tried using DeferWindowPos to speed things up/improve the drawing... but it's made no difference
You can see the control by downloading an exe I uploaded just now:
Click to download the zip file (39k)
I've posted on various forums, and haven't had anyone even attempt to provide a solution. There must be something obvious I'm missing out...
Thanks in advance....
|
|
|
|
|
Draw the dialogs onto a seperate bitmap, then copy that bitmap onto your DC in one go.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
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
|
|
|
|