Click here to Skip to main content
16,007,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List-View Item States Pin
Anonymous4-Sep-02 23:24
Anonymous4-Sep-02 23:24 
GeneralRe: List-View Item States Pin
Tomasz Sowinski4-Sep-02 23:27
Tomasz Sowinski4-Sep-02 23:27 
GeneralRe: List-View Item States Pin
Anonymous4-Sep-02 23:49
Anonymous4-Sep-02 23:49 
GeneralExplorer crashes when terminating my mfc-app Pin
tabor254-Sep-02 22:56
tabor254-Sep-02 22:56 
GeneralRe: Explorer crashes when terminating my mfc-app Pin
Gary R. Wheeler5-Sep-02 2:52
Gary R. Wheeler5-Sep-02 2:52 
Generalstatic control issue :-( Pin
Nish Nishant4-Sep-02 22:16
sitebuilderNish Nishant4-Sep-02 22:16 
GeneralRe: static control issue :-( Pin
Tomasz Sowinski4-Sep-02 23:13
Tomasz Sowinski4-Sep-02 23:13 
GeneralRe: static control issue :-( Pin
Nish Nishant5-Sep-02 0:44
sitebuilderNish Nishant5-Sep-02 0:44 
Tomasz Sowinski wrote:
You're passing NULL as 1st argument to ::LoadBitmap. ::LoadBitmap fails

Hmmm. Tomasz, can you take a look at this URL :-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstatic.3a3a.setbitmap.asp

and scroll down to the example :-
[I copy/paste below for your convenience]

Example


CStatic myStatic;

// Create a child bitmap static control.
myStatic.Create(_T("my static"), 
   WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE, CRect(10,10,150,50), 
   pParentWnd);

// Set the bitmap of the static control to be the 
// system check-mark bitmap.
myStatic.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );



Author of the romantic comedy

Summer Love and Some more Cricket [New Win]

Review by Shog9
Click here for review[NW]

GeneralRe: static control issue :-( Pin
Tomasz Sowinski5-Sep-02 0:55
Tomasz Sowinski5-Sep-02 0:55 
GeneralRe: static control issue :-( Pin
Nish Nishant5-Sep-02 1:12
sitebuilderNish Nishant5-Sep-02 1:12 
GeneralPrint Unicode on Win98 Pin
Eugene Pustovoyt4-Sep-02 22:03
Eugene Pustovoyt4-Sep-02 22:03 
GeneralRe: Print Unicode on Win98 Pin
Tomasz Sowinski4-Sep-02 23:26
Tomasz Sowinski4-Sep-02 23:26 
GeneralRe: Print Unicode on Win98 Pin
Eugene Pustovoyt5-Sep-02 18:38
Eugene Pustovoyt5-Sep-02 18:38 
GeneralPassing a pointer to a thread Pin
Floppe4-Sep-02 21:08
Floppe4-Sep-02 21:08 
GeneralRe: Passing a pointer to a thread [corrected] Pin
Joaquín M López Muñoz4-Sep-02 21:16
Joaquín M López Muñoz4-Sep-02 21:16 
GeneralRe: Passing a pointer to a thread [corrected] Pin
Floppe4-Sep-02 21:37
Floppe4-Sep-02 21:37 
GeneralRe: Passing a pointer to a thread [corrected] Pin
Jon Hulatt4-Sep-02 21:49
Jon Hulatt4-Sep-02 21:49 
GeneralRe: Passing a pointer to a thread Pin
Gary R. Wheeler5-Sep-02 2:59
Gary R. Wheeler5-Sep-02 2:59 
QuestionHow do I toggle the "password" style for an edit box? Pin
fferland4-Sep-02 14:12
fferland4-Sep-02 14:12 
AnswerRe: How do I toggle the "password" style for an edit box? Pin
Sprudling4-Sep-02 14:42
Sprudling4-Sep-02 14:42 
QuestionCan I monitor removable device with ReadDirectoryChangesW? Pin
Hiusing4-Sep-02 13:30
Hiusing4-Sep-02 13:30 
Generalfound source of error" invalid handle" need help debugging it Pin
ns4-Sep-02 11:46
ns4-Sep-02 11:46 
GeneralRe: found source of error" invalid handle" need help debugging it Pin
Chris Losinger4-Sep-02 11:48
professionalChris Losinger4-Sep-02 11:48 
GeneralRe: found source of error" invalid handle" need help debugging it Pin
Pavel Klocek4-Sep-02 11:59
Pavel Klocek4-Sep-02 11:59 
GeneralRe: found source of error" invalid handle" need help debugging it Pin
Michael Dunn4-Sep-02 16:41
sitebuilderMichael Dunn4-Sep-02 16:41 

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.