kedar.dave wrote: how can i get an ICON from a window and pass it to the
if you want to get the Icon from some other window and use that in your window program you can use ExtractIcon api
here is small code listing for that
<font color=#008000>//Assume m_strFileName point to valid Program file//Now use the Extract Icon api to Extract the Icon//First Parameter =NULL( indicateuse the curent instance)//Second Parameter = Name of file from which you want to extract icon//Third Parameter : Index of icon ,here i am extracting the// first icon from the exefile</font>
<font color=#008000>//here m_statIcon is static ctrl of type ICON </font>
Basicly in your propertysheet's OnSize handler you have to resize the tab control to match the sheet and then resize the active page to match the tab control. Then use your propertypage's OnSize handler to resize the controls on the page.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Well, I have a console based application which keeps printing to the console for every second or so. The problem that I am facing is when some user clicks on the console, the application is just hanging because of the "printf()" function. The thread resumes operation only after the user presses the right click button.
Any clues as to how I can over ride the mouse events in a console application? (this seems to be the only solution to me, any other solutions are more than welcome).
I have heard something about "GetConsoleWindow()" etc. which provides an alternative to printf()...any1 can please update me on this??
I have source codes of my programs. One of them is dialog based application and the other is SDI Single Document Interface. I would like to combine that two sources into one. SDI program should have the dialog based program inside. What should I do?
now copy the clas CDialogDlg to the SDI app, you must also open
the .rc file from the dialog app and add the dialogtemplate to your SDI app
now you must check the CDialogApp class, if there is some code you must
also add to your new App.
Add a menuentrie to the Mainmenu, and in the eventhandler for
this menu you can create a modal dialog of your
old app and show it to the user...
Can you help me to write the function which will describe the x,y 2-d coord
on the rotated sphere with v initial velocity. It can be top point of the sphere or for example number on the pool ball.
Last Visit: 31-Dec-99 18:00 Last Update: 2-Jul-22 11:37