Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionJavaScript Access Pin
namespaceuser14-Sep-05 4:55
namespaceuser14-Sep-05 4:55 
AnswerRe: JavaScript Access Pin
Alexander M.,14-Sep-05 9:09
Alexander M.,14-Sep-05 9:09 
GeneralRe: JavaScript Access Pin
namespaceuser14-Sep-05 11:00
namespaceuser14-Sep-05 11:00 
QuestionMenu in MDI Child Window Pin
Bruce Pataki14-Sep-05 4:10
Bruce Pataki14-Sep-05 4:10 
Questionreplacing m_pFloatingFrameClass in MFC... Pin
Maximilien14-Sep-05 3:41
Maximilien14-Sep-05 3:41 
Questionmodeless dialog and GetParent() Pin
23_44414-Sep-05 3:36
23_44414-Sep-05 3:36 
AnswerRe: modeless dialog and GetParent() Pin
Chris Losinger14-Sep-05 3:47
professionalChris Losinger14-Sep-05 3:47 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 3:50
23_44414-Sep-05 3:50 
GeneralRe: modeless dialog and GetParent() Pin
Chris Losinger14-Sep-05 4:02
professionalChris Losinger14-Sep-05 4:02 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:06
23_44414-Sep-05 4:06 
GeneralRe: modeless dialog and GetParent() Pin
Chris Losinger14-Sep-05 4:12
professionalChris Losinger14-Sep-05 4:12 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:17
23_44414-Sep-05 4:17 
GeneralRe: modeless dialog and GetParent() Pin
Chris Losinger14-Sep-05 4:23
professionalChris Losinger14-Sep-05 4:23 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:26
23_44414-Sep-05 4:26 
GeneralRe: modeless dialog and GetParent() Pin
David Crow14-Sep-05 4:39
David Crow14-Sep-05 4:39 
AnswerRe: modeless dialog and GetParent() Pin
David Crow14-Sep-05 4:34
David Crow14-Sep-05 4:34 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:42
23_44414-Sep-05 4:42 
GeneralRe: modeless dialog and GetParent() Pin
David Crow14-Sep-05 8:30
David Crow14-Sep-05 8:30 
GeneralRe: modeless dialog and GetParent() Pin
23_44415-Sep-05 3:26
23_44415-Sep-05 3:26 
Questionbitmaps Pin
_tasleem14-Sep-05 3:19
_tasleem14-Sep-05 3:19 
AnswerRe: bitmaps Pin
M.Mehrdad.M14-Sep-05 3:28
M.Mehrdad.M14-Sep-05 3:28 
AnswerRe: bitmaps Pin
M.Mehrdad.M14-Sep-05 3:29
M.Mehrdad.M14-Sep-05 3:29 
AnswerRe: bitmaps Pin
David Crow14-Sep-05 3:39
David Crow14-Sep-05 3:39 
tasleem143 wrote:
bitmap=LoadBitmap(NULL,MAKEINTRESOURCE("C:\\ff.bmp"));

What's this? MAKEINTRESOURCE() does not take a string for its argument.

In the project's resource.h file:
#define IDC_MYBITMAP 1234 // or some other appropriate value
In the project's .rc file:
IDC_MYBITMAP BITMAP  DISCARDABLE "c:\\ff.bmp"
In the .cpp file:
HBITMAP hBitmap = LoadBitmap(NULL, MAKEINTRESOURCE(IDC_MYBITMAP));
if (NULL == hBitmap)
    AfxMessageBox("LoadBitmap() failed.");
else
    m_pic.SetBitmap(hBitmap);



"One must learn from the bite of the fire to leave it alone." - Native American Proverb


QuestionError in ShowWindow() function ? Pin
Amarelia14-Sep-05 3:12
Amarelia14-Sep-05 3:12 
AnswerRe: Error in ShowWindow() function ? Pin
krmed14-Sep-05 3:24
krmed14-Sep-05 3:24 

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.