Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why I can not return an array from a function? Pin
Jon Hulatt19-Dec-01 2:31
Jon Hulatt19-Dec-01 2:31 
GeneralRe: Why I can not return an array from a function? Pin
Ernest Laurentin19-Dec-01 5:26
Ernest Laurentin19-Dec-01 5:26 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth19-Dec-01 18:52
BigMouth19-Dec-01 18:52 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth21-Dec-01 23:33
BigMouth21-Dec-01 23:33 
AnswerRe: Why I can not return an array from a function? Pin
Alvaro Mendez19-Dec-01 6:06
Alvaro Mendez19-Dec-01 6:06 
GeneralRe: Why I can not return an array from a function? Pin
BigMouth21-Dec-01 23:24
BigMouth21-Dec-01 23:24 
GeneralCBitmap to HICON Pin
GurGur18-Dec-01 23:23
GurGur18-Dec-01 23:23 
GeneralRe: CBitmap to HICON Pin
Rashid Thadha18-Dec-01 23:42
Rashid Thadha18-Dec-01 23:42 
One possible way is to Bitmap -> ImageList -> Icon

CImageList m_imgIcon;
//to support 256 colors	icons
m_imgIcon.Create(32,32,ILC_COLORDDB |ILC_MASK,0,10);
		
CBitmap bm;
bm.LoadBitmap(IDB_ICON);
m_imgIcon.Add(&bm,RGB(255,0,255));

// Use ExtractIcon to extract ICON
HICON hIcon;
hIcon = m_imgIcon.ExtractIcon(nImg);

GeneralRe: CBitmap to HICON Pin
GurGur19-Dec-01 9:13
GurGur19-Dec-01 9:13 
GeneralRe: CBitmap to HICON Pin
Joaquín M López Muñoz18-Dec-01 23:52
Joaquín M López Muñoz18-Dec-01 23:52 
GeneralRe: CBitmap to HICON Pin
GurGur19-Dec-01 9:18
GurGur19-Dec-01 9:18 
GeneralRe: CBitmap to HICON Pin
Jim Crafton19-Dec-01 10:11
Jim Crafton19-Dec-01 10:11 
Generaldrag'n drop Pin
Jerome Conus18-Dec-01 22:34
Jerome Conus18-Dec-01 22:34 
GeneralRe: drag'n drop Pin
Joaquín M López Muñoz18-Dec-01 23:33
Joaquín M López Muñoz18-Dec-01 23:33 
QuestionHow to set MDIChildFrame title case different view? Pin
wuxy18-Dec-01 22:24
wuxy18-Dec-01 22:24 
AnswerRe: How to set MDIChildFrame title case different view? Pin
Chambers18-Dec-01 23:38
Chambers18-Dec-01 23:38 
GeneralRe: How to set MDIChildFrame title case different view? Pin
wuxy19-Dec-01 15:19
wuxy19-Dec-01 15:19 
QuestionI got a HWND of CFileDialog, how can I use this HWND to get the current path of the CFileDialog? Pin
18-Dec-01 22:22
suss18-Dec-01 22:22 
AnswerRe: I got a HWND of CFileDialog, how can I use this HWND to get the current path of the CFileDialog? Pin
Bernhard18-Dec-01 22:57
Bernhard18-Dec-01 22:57 
Questionhow to make the window invisible? Pin
haiyan_qi18-Dec-01 21:54
haiyan_qi18-Dec-01 21:54 
AnswerRe: how to make the window invisible? Pin
Nish Nishant18-Dec-01 22:13
sitebuilderNish Nishant18-Dec-01 22:13 
AnswerRe: how to make the window invisible? Pin
Joaquín M López Muñoz18-Dec-01 23:17
Joaquín M López Muñoz18-Dec-01 23:17 
GeneralRe: how to make the window invisible? Pin
haiyan_qi19-Dec-01 14:13
haiyan_qi19-Dec-01 14:13 
GeneralRe: how to make the window invisible? Pin
Joaquín M López Muñoz19-Dec-01 21:12
Joaquín M López Muñoz19-Dec-01 21:12 
AnswerRe: how to make the window invisible? Pin
Alvaro Mendez19-Dec-01 6:17
Alvaro Mendez19-Dec-01 6:17 

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.