|
George_George wrote: I mean the APIs which are invoked by my program, but not implemented by my program.
even that, printf is not defined by windows, but by the C runtime (printf() is plateform independant - you can use it on unix, linux, windows - even if its implementation is different between the systems).
i repeat myself : a system API is something that is defined by the system (windows, solaris, red hat, etc...) and interfaced to you programmer so that you can use the system functionnalities...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
I may use a wrong terminology, I mean the functions which are used by not defined by my program. Clear now?
regards,
George
|
|
|
|
|
George_George wrote: I mean the functions which are used by not defined by my program. Clear now?
So from where you get the Defination of that function at runtime!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi Alok,
I am not very sure about your points. I mean I only want to get the name and prototype (parameter list and return type) of all dependent system function, not the definition (i.e. implementation). Any comments?
regards,
George
|
|
|
|
|
The only thing I know of that even remotely resembles an answer would be the profiler. It shows all functions that get called. You would have to separate out the system functions vs. user functions, though.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes, you are right -- I want to distinguish user function and system function. But what is remotely resembles? A tool provided by Visual Studio or something?
regards,
George
|
|
|
|
|
George_George wrote: But what is remotely resembles?
It means it is not a direct answer to your question.
George_George wrote: A tool provided by Visual Studio or something?
Yes, the profiler comes with VS.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you DavidCrow!
Is there a tool called profiler in Visual Studio 2003? I can not find it from the Tools sub-menu. Could you provide more detailed information please?
regards,
George
|
|
|
|
|
George_George wrote: Is there a tool called profiler in Visual Studio 2003?
I don't know, as I'm not familar with that product.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi DavidCrow,
What product are you talking about when you say profiler? VC6 or something else?
regards,
George
|
|
|
|
|
The profiler that comes with VS. It's on the Build menu.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi DavidCrow,
I have found that in the build menu of Visual Studio 2003, there is nothing called profier. Which IDE are you using?
regards,
George
|
|
|
|
|
George_George wrote: Which IDE are you using?
Visual Studio v6.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Any *Old* IDE,
DavidCrow, do you know whether there are related stuff for Visual Studio 2003?
regards,
George
|
|
|
|
|
I've got an application which I want to fit into the y dimension of the screen. The function:
cyMon = ::GetSystemMetrics( SM_CYSCREEN);
gives me the screen dimension, but I want the net dimension not including the task bar, if the task bar isn't being auto-hidden.
I see that if I hit the maximize button, the system is clever enough to take into consideration whether or not the task bar is displayed.
If I could somehow get the system to tell me what its maximize size it, that would give me the answer. The GetSystemMetrics gives me the same answer, with and without the task bar.
Does anyone know the appropriate call?
Thanks,
Ilan
|
|
|
|
|
|
You need to use SystemParametersInfo with the SPI_GETWORKAREA value: Retrieves the size of the work area on the primary display monitor. The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars. The pvParam parameter must point to a RECT structure that receives the coordinates of the work area, expressed in virtual screen coordinates.
|
|
|
|
|
|
i use the code to mininmize all open windows
::PostMessage(FindWindow("Shell_TrayWnd",NULL)->GetSafeHwnd(),WM_COMMAND,MAKELONG(415,0),0);
::PostMessage(FindWindow("Shell_TrayWnd",NULL)->GetSafeHwnd(),WM_COMMAND,MAKELONG(416,0),0);
but the dialog box on which button to minimize all does not minmimize.
that is all open windows minimize except the dialog box containing button
.and i do coding on this button
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
why not call ShowWindow(SW_MINIMIZE)after your ::PostMessage commands?
|
|
|
|
|
postmessage does not take one parameter
and i want to minimize all open windows not only one ,
thanks for your reply.
Ashish Dogra
MCA
Noida
|
|
|
|
|
You can accomplish this in three calls then...the PostMessage commands you have (will minimize all windows except the dialog calling it).
Then use ShowWindow(SW_MINIMIZE) to minimize the current window.
|
|
|
|
|
thanks
but it does not minimize all windows it minimize only itself and one window.
and also tell me if button is on third dialog then last two dialog are not minimized
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: but the dialog box on which button to minimize all does not minmimize.
that is all open windows minimize except the dialog box containing button
Doesn't this mean that the only window not minimized is the one with the "button" on it? At this point in your program, you only have 1 window left open? If so, call the ShowWindow now and this one window will minimize.
|
|
|
|
|
Why not something as simple as:
keybd_event(VK_LWIN, 0, 0, 0);
keybd_event(77, 0, 0, 0);
keybd_event(VK_LWIN, 0, KEYEVENTF_KEYUP, 0);
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|