Click here to Skip to main content
15,921,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why not C++ reflection? Pin
CPallini6-Jun-10 23:44
mveCPallini6-Jun-10 23:44 
AnswerRe: Why not C++ reflection? Pin
Aescleal7-Jun-10 2:04
Aescleal7-Jun-10 2:04 
QuestionCustom ProgressBar Pin
AbhiHcl6-Jun-10 21:59
AbhiHcl6-Jun-10 21:59 
AnswerRe: Custom ProgressBar Pin
Niklas L6-Jun-10 22:50
Niklas L6-Jun-10 22:50 
GeneralRe: Custom ProgressBar Pin
AbhiHcl6-Jun-10 23:07
AbhiHcl6-Jun-10 23:07 
GeneralRe: Custom ProgressBar Pin
Niklas L6-Jun-10 23:31
Niklas L6-Jun-10 23:31 
GeneralRe: Custom ProgressBar Pin
AbhiHcl7-Jun-10 0:02
AbhiHcl7-Jun-10 0:02 
GeneralRe: Custom ProgressBar Pin
Niklas L7-Jun-10 1:14
Niklas L7-Jun-10 1:14 
It's getting some general properties for the bitmap. In this case we are interested in the size of the image bmWidth and bmHeight members of the BITMAP struct, to be able to know how much to stretch the image.

If you get an ASSERT it could be because you have not loaded any bitmap yet. I assume m_bitmap is of type CBitmap and that it is declared as a member of CMyProgrssCtrl.

In the constructor (or Create and PreSubclassWindow) do m_bitmap.LoadBitmap(IDB_BITAMP) where IDB_BITMAP is the bitmap you have in your resources.

GeneralRe: Custom ProgressBar Pin
AbhiHcl7-Jun-10 1:28
AbhiHcl7-Jun-10 1:28 
GeneralRe: Custom ProgressBar Pin
Niklas L7-Jun-10 1:44
Niklas L7-Jun-10 1:44 
QuestionRe: Custom ProgressBar Pin
David Crow7-Jun-10 4:12
David Crow7-Jun-10 4:12 
Questionfatal error C1900 Pin
T.RATHA KRISHNAN6-Jun-10 18:07
T.RATHA KRISHNAN6-Jun-10 18:07 
AnswerRe: fatal error C1900 Pin
Stephen Hewitt6-Jun-10 18:08
Stephen Hewitt6-Jun-10 18:08 
GeneralRe: fatal error C1900 Pin
T.RATHA KRISHNAN7-Jun-10 0:21
T.RATHA KRISHNAN7-Jun-10 0:21 
GeneralRe: fatal error C1900 Pin
Stephen Hewitt7-Jun-10 14:03
Stephen Hewitt7-Jun-10 14:03 
QuestionRe: fatal error C1900 Pin
David Crow7-Jun-10 4:14
David Crow7-Jun-10 4:14 
QuestionDoxygen is melting my face, need pointers Pin
Trevor Johansen6-Jun-10 8:24
Trevor Johansen6-Jun-10 8:24 
AnswerRe: Doxygen is melting my face, need pointers Pin
Aescleal6-Jun-10 8:29
Aescleal6-Jun-10 8:29 
GeneralRe: Doxygen is melting my face, need pointers Pin
Trevor Johansen6-Jun-10 8:46
Trevor Johansen6-Jun-10 8:46 
GeneralRe: Doxygen is melting my face, need pointers Pin
Aescleal6-Jun-10 11:01
Aescleal6-Jun-10 11:01 
AnswerRe: Doxygen is melting my face, need pointers Pin
Moak6-Jun-10 10:18
Moak6-Jun-10 10:18 
GeneralRe: Doxygen is melting my face, need pointers Pin
Trevor Johansen6-Jun-10 12:29
Trevor Johansen6-Jun-10 12:29 
QuestionBitblt Transparency question Pin
ForNow5-Jun-10 23:31
ForNow5-Jun-10 23:31 
AnswerRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 9:07
Niklas L6-Jun-10 9:07 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 10:33
ForNow6-Jun-10 10:33 

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.