|
kilowatt-
Thanks a lot !!
-Vivek
|
|
|
|
|
Hi, I dont know how to find out:
is my CDialog in foreground already?
is my CDialog partly visible or completly covered by other application(s)?
Thx for help
|
|
|
|
|
BOOL CMyDialog::IsForeground()
{
if(GetForegroundWindow() == this)
return TRUE;
return FALSE;
}
Maxwell Chen
Lets make bugs better!
|
|
|
|
|
GetForegroundWindow(), thx!
mea culpa for not finding this in MSDN, must been blind.
Any idea how to find out if a window is (at least) partly visible - or completly covered by other windows?
|
|
|
|
|
I have never tried this before in C++, anyone know some api calls (not MFC)?
Thanks
|
|
|
|
|
Handle the NM_RCLICK message.
Best regards,
Alexandru Savescu
|
|
|
|
|
That's not really the problem, it's more how to display the popup menu.
|
|
|
|
|
Look up TrackPopupMenu(..) in MSDN!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
Thanks, works like a charm!
|
|
|
|
|
I am a learner of OpenGL,and use it to write a full-screen programme with big scene,in which user can walk around.Now I want to add a compass(A box and Needle)at the right-top conner of the screen to indicate the direction(just as game "Dngeon Siege").I known how to draw the appearance of the compass but do not known how to make some setting before drawing the compass.
Can you give me some code or advice?Any help are appreciated!
C/C++ code fans
|
|
|
|
|
I don't know what you really want,but have you check this site?
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Thanks a lot!
I often go to http://nehe.gamedev.net/,unfortunately,I can't find what I want.
My doubt is "how to make the compass at the corner of the screen when user roam around".Or rather,how to draw a circle there when user roam:the circle is still at the corner,keep immobility,It seems that it is not associated with the 3D space!
C/C++ code fans
|
|
|
|
|
zjkw wrote:
how to draw a circle there when user roam:the circle is still at the corner,keep immobility,It seems that it is not associated with the 3D space!
Why not check out the source code for Quake or the Crystal Space engine at SourceForge?
There's also a beginners forum at opengl.org.
|
|
|
|
|
Thank you very much,I have finished my idea!
C/C++ code fans
|
|
|
|
|
Hi.
I know it is possible to automate an office application into a dialog in VB. it's simple, MS included an activeX for it.
But in C++/MFC it's different. I don't know which activeX to import (the one the vb uses) and the only documentation I found was how to automate office applications into SDI and MDI applications, but that's not good enough. I want to be able to create a dialog based application (or a new dialog in an already existing application - in my case) and embedd Word or Excel onto that document.
Any ideas ?
The perfect solution will be to use VB's activeX, but I don't know which is it.
|
|
|
|
|
I'm not really into VB, but I guess that theres got to be a way to find out what activeX control it's using..
You should might try to create a dialog box in VB and open the dialog resource file (or which ever way VB stores that in) with a text editor and you might be luvky to find the GUID
Just a shot in the dark =)
Cheers,
Marc
|
|
|
|
|
I think you have to use Automation.There are a lot of articles in MSDN about it.Serach "VC" + "Excel" in MSDN.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
I want to programatically temporatily disable the Windows key on my keyboard (the one that triggers the start menu)..
I tried to create a hook procedure that catches the proper WM_KEYDOWN messages (both WH_KEYBOARD and WH_GETMESSAGE can do this) but I dont know how to discard those messages once I intercept them.
Is there a way to do this or should I use a completely different approach to disable that key?
Thanks,
Marc.
|
|
|
|
|
I think you need to look up CBT hooks and how to use them
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Hi, my drawing application wants to display the color in-use in the status bar, how can I do that?
|
|
|
|
|
GetStatusBarCtrl().SetBkColor( COLORREF cr );
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
It changes the whole status bar to the color specified. How to change a specific pane of the status bar? Thanks.
|
|
|
|
|
I'm sure the status bar class I used to do this years ago came from CP so have a look on the site. You need to create a class that overloads the status bar to do this.....
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Hey!!
Can someone give me a good site that tackles tutorials
about the C-Language preprocessors....
e.g. IFDEF, UNDEF, IFNDEF, etc...
|
|
|
|
|
Rule #1: the preprocessor sucks - avoid using it
Rule #2: See Rule #1.
The preprocessor is evil, avoid it if you can.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|