Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAVL Tree insertion algorithm Pin
Sarath C1-Feb-05 3:27
Sarath C1-Feb-05 3:27 
GeneralHooked MDIChild window ---> problem Pin
Ro_land1-Feb-05 3:15
Ro_land1-Feb-05 3:15 
GeneralRe: Hooked MDIChild window ---> problem Pin
Roger Allen1-Feb-05 6:10
Roger Allen1-Feb-05 6:10 
GeneralRe: Hooked MDIChild window ---> problem Pin
Ro_land2-Feb-05 19:19
Ro_land2-Feb-05 19:19 
GeneralAVL Tree Pin
Sarath C1-Feb-05 3:05
Sarath C1-Feb-05 3:05 
Generalextracting part of a string Pin
si_691-Feb-05 2:52
si_691-Feb-05 2:52 
GeneralRe: extracting part of a string Pin
V.1-Feb-05 3:03
professionalV.1-Feb-05 3:03 
GeneralRe: extracting part of a string Pin
Sarath C1-Feb-05 3:26
Sarath C1-Feb-05 3:26 
GeneralRe: extracting part of a string Pin
bolivar1231-Feb-05 5:32
bolivar1231-Feb-05 5:32 
GeneralRe: extracting part of a string Pin
toxcct1-Feb-05 5:52
toxcct1-Feb-05 5:52 
QuestionCaveats when using SetParent ? Pin
Maximilien1-Feb-05 1:27
Maximilien1-Feb-05 1:27 
QuestionAny example Advise Sink in C++ ? Pin
im4help1-Feb-05 1:13
im4help1-Feb-05 1:13 
Generalvc++ Pin
nowshadmc1-Feb-05 1:01
nowshadmc1-Feb-05 1:01 
GeneralIntelligent Agent Pin
SummersZone1-Feb-05 0:49
SummersZone1-Feb-05 0:49 
GeneralRe: Intelligent Agent Pin
Selvam R1-Feb-05 1:51
professionalSelvam R1-Feb-05 1:51 
GeneralGET ICON Pin
kedar.dave1-Feb-05 0:33
kedar.dave1-Feb-05 0:33 
GeneralRe: GET ICON Pin
ThatsAlok1-Feb-05 2:53
ThatsAlok1-Feb-05 2:53 
kedar.dave wrote:
how can i get an ICON from a window and pass it to the
CreateWindowEx function?


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
HICON m_hRemoteIcon;
CString m_strFileName;
<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>

m_hRemoteIcon=ExtractIcon(NULL,m_strFileName,0);
<font color=#008000>//here  m_statIcon is static ctrl of type ICON </font>
m_statIcon.SetIcon(m_hRemoteIcon);



"I Think this Will Help"
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralRe: GET ICON Pin
kedar.dave2-Feb-05 19:06
kedar.dave2-Feb-05 19:06 
Generalresize PropertySheet Pin
includeh101-Feb-05 0:32
includeh101-Feb-05 0:32 
GeneralRe: resize PropertySheet Pin
PJ Arends1-Feb-05 10:25
professionalPJ Arends1-Feb-05 10:25 
QuestionHow to get image dimensions? Pin
Monisankar1-Feb-05 0:08
Monisankar1-Feb-05 0:08 
AnswerRe: How to get image dimensions? Pin
Selvam R1-Feb-05 1:48
professionalSelvam R1-Feb-05 1:48 
AnswerRe: How to get image dimensions? Pin
viliam1-Feb-05 3:08
viliam1-Feb-05 3:08 
GeneralOverriding mouse events in Win32 Console application Pin
mahade131-Jan-05 23:49
mahade131-Jan-05 23:49 
GeneralPage Flip Effect Pin
Muneeb R. Baig31-Jan-05 23:43
Muneeb R. Baig31-Jan-05 23:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.