Click here to Skip to main content
15,893,663 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHELP! * Accurate Text Extent needing * Pin
Furno Gianluca24-Jun-06 7:09
Furno Gianluca24-Jun-06 7:09 
QuestionC# and C++ and COM variables Pin
Dave_Roach24-Jun-06 6:35
Dave_Roach24-Jun-06 6:35 
QuestionCWnd::OnEnable and CWnd display Pin
Gilles0660024-Jun-06 5:52
Gilles0660024-Jun-06 5:52 
QuestionRe: CWnd::OnEnable and CWnd display Pin
ovidiucucu25-Jun-06 5:24
ovidiucucu25-Jun-06 5:24 
AnswerRe: CWnd::OnEnable and CWnd display Pin
Gilles0660026-Jun-06 0:39
Gilles0660026-Jun-06 0:39 
GeneralRe: CWnd::OnEnable and CWnd display Pin
ovidiucucu29-Jun-06 2:44
ovidiucucu29-Jun-06 2:44 
QuestionHow to display a gray icon Pin
xuwenq8824-Jun-06 5:31
xuwenq8824-Jun-06 5:31 
AnswerRe: How to display a gray icon Pin
ovidiucucu25-Jun-06 5:06
ovidiucucu25-Jun-06 5:06 
If you want a monochrome icon then no sweat.
Call ::LoadImage and pass LR_MONOCHROME as load option.
HICON hIcon = (HICON)::LoadImage(AfxGetResourceHandle(), 
                                 MAKEINTRESOURCE(IDI_ICO_256COLOR),
                                 IMAGE_ICON,
                                 0, 0,
                                 LR_MONOCHROME);

If you want a grayscale one, better is to "prepare" it yourself. There are tools that convert color icons to grayscale and Irfan View[^]is a free one.
Import the gray icon in your project resources, then load it like any others.

Ovidiu Cucu
Microsoft MVP - Visual C++
Questioni need gedir simulation Pin
nadeemali24-Jun-06 5:24
nadeemali24-Jun-06 5:24 
QuestionHow to distinguish start method Pin
chenxiujie24-Jun-06 3:05
chenxiujie24-Jun-06 3:05 
AnswerRe: How to distinguish start method Pin
Jun Du24-Jun-06 3:57
Jun Du24-Jun-06 3:57 
GeneralRe: How to distinguish start method Pin
chenxiujie24-Jun-06 14:08
chenxiujie24-Jun-06 14:08 
GeneralRe: How to distinguish start method Pin
Jun Du24-Jun-06 15:51
Jun Du24-Jun-06 15:51 
AnswerRe: How to distinguish start method Pin
Jörgen Sigvardsson24-Jun-06 23:21
Jörgen Sigvardsson24-Jun-06 23:21 
QuestionVisual C++ Compiling (Borland) Pin
Peter Charlesworth24-Jun-06 3:00
Peter Charlesworth24-Jun-06 3:00 
AnswerRe: Visual C++ Compiling (Borland) Pin
Maxwell Chen24-Jun-06 20:29
Maxwell Chen24-Jun-06 20:29 
GeneralRe: Visual C++ Compiling (Borland) Pin
Peter Charlesworth25-Jun-06 0:48
Peter Charlesworth25-Jun-06 0:48 
AnswerRe: Visual C++ Compiling (Borland) Pin
Maxwell Chen25-Jun-06 5:54
Maxwell Chen25-Jun-06 5:54 
QuestionTranscoding Pin
Ranvijay Singh24-Jun-06 2:11
Ranvijay Singh24-Jun-06 2:11 
Questionabout static control Pin
happy_ram24-Jun-06 1:51
happy_ram24-Jun-06 1:51 
QuestionRe: about static control Pin
Jun Du24-Jun-06 2:24
Jun Du24-Jun-06 2:24 
AnswerRe: about static control Pin
happy_ram24-Jun-06 2:30
happy_ram24-Jun-06 2:30 
QuestionRichEdit Problem Pin
Anh_Tuan24-Jun-06 0:11
Anh_Tuan24-Jun-06 0:11 
QuestionHow to terminate a process gently Pin
chenxiujie24-Jun-06 0:08
chenxiujie24-Jun-06 0:08 
AnswerRe: How to terminate a process gently Pin
Sam Hobbs24-Jun-06 0:21
Sam Hobbs24-Jun-06 0:21 

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.