Click here to Skip to main content
15,878,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Page Flip Effect Pin
Selvam R1-Feb-05 1:44
professionalSelvam R1-Feb-05 1:44 
GeneralRe: Page Flip Effect Pin
Alex Korchemniy2-Feb-05 13:17
Alex Korchemniy2-Feb-05 13:17 
GeneralSDI and dialog based application Pin
Johnny Peszek31-Jan-05 23:35
Johnny Peszek31-Jan-05 23:35 
GeneralRe: SDI and dialog based application Pin
wb1-Feb-05 0:38
wb1-Feb-05 0:38 
GeneralRe: SDI and dialog based application Pin
Johnny Peszek2-Feb-05 0:22
Johnny Peszek2-Feb-05 0:22 
Generalassertion fails in appcore.cpp Pin
Tariq87831-Jan-05 22:54
Tariq87831-Jan-05 22:54 
GeneralI have a problem with rotation a ball Pin
HGArmen31-Jan-05 21:54
HGArmen31-Jan-05 21:54 
GeneralRe: I have a problem with rotation a ball Pin
Shog91-Feb-05 10:44
sitebuilderShog91-Feb-05 10:44 
QuestionHow do I use MSXML Parser? Pin
IronMike31-Jan-05 21:48
IronMike31-Jan-05 21:48 

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.