Click here to Skip to main content
15,915,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: const function Pin
Jerome Conus16-May-04 22:51
Jerome Conus16-May-04 22:51 
GeneralRe: const function Pin
Curi0us_George16-May-04 23:39
Curi0us_George16-May-04 23:39 
GeneralRe: const function Pin
nguyenvhn16-May-04 22:53
nguyenvhn16-May-04 22:53 
GeneralRe: const function Pin
Michael Dunn17-May-04 0:41
sitebuilderMichael Dunn17-May-04 0:41 
GeneralRe: const function Pin
Antony M Kancidrowski17-May-04 1:18
Antony M Kancidrowski17-May-04 1:18 
GeneralJPG Image In Picture Control Pin
balajeedurai16-May-04 19:56
balajeedurai16-May-04 19:56 
GeneralRe: JPG Image In Picture Control Pin
ThatsAlok3-May-05 23:20
ThatsAlok3-May-05 23:20 
GeneralProblem with CBitmapButton Pin
lostris16-May-04 19:52
lostris16-May-04 19:52 
Hi all;

I have followed the instructions in MSDN for creating a bitmap button on a dialog box:
that is, I have drawn my bitmaps and named them accordingly with suffixes "U", "D", "F" and "X".

Then I have drawn my button on the dialog box, checking "Owner draw" in properties and with caption the name of the bitmaps without the above suffixes.

I have named a variable of type CBitmapButton in the dialog class and called the AutoLoad in 'OnInitDialog()' function as follows:

VERIFY(okBtn.AutoLoad(IDOK, this));

And I get an "ASSERT" error at this line:

ASSERT(FromHandlePermanent(hWndNew) == NULL);

What's the problem and what can I do?
Can somebody please help me??

_Lostris.


GeneralRe: Problem with CBitmapButton Pin
David Crow17-May-04 2:45
David Crow17-May-04 2:45 
GeneralData synchronisation Pin
Ryan Binns16-May-04 19:15
Ryan Binns16-May-04 19:15 
General48*48 icon Pin
Imtiaz Murtaza16-May-04 19:04
Imtiaz Murtaza16-May-04 19:04 
GeneralRe: 48*48 icon Pin
toxcct16-May-04 22:14
toxcct16-May-04 22:14 
GeneralIMPLEMENT_DYNCREATE Pin
alex.barylski16-May-04 18:42
alex.barylski16-May-04 18:42 
GeneralRe: IMPLEMENT_DYNCREATE Pin
Ryan Binns16-May-04 18:45
Ryan Binns16-May-04 18:45 
GeneralRe: IMPLEMENT_DYNCREATE Pin
alex.barylski16-May-04 19:03
alex.barylski16-May-04 19:03 
GeneralRe: IMPLEMENT_DYNCREATE Pin
Prakash Nadar16-May-04 21:43
Prakash Nadar16-May-04 21:43 
GeneralRe: IMPLEMENT_DYNCREATE Pin
Roger Allen16-May-04 22:49
Roger Allen16-May-04 22:49 
GeneralRe: IMPLEMENT_DYNCREATE Pin
alex.barylski17-May-04 13:19
alex.barylski17-May-04 13:19 
GeneralMacro explaination Pin
ShankarPS16-May-04 18:24
ShankarPS16-May-04 18:24 
GeneralRe: Macro explaination Pin
Ryan Binns16-May-04 18:42
Ryan Binns16-May-04 18:42 
GeneralRe: Macro explaination Pin
ShankarPS16-May-04 19:02
ShankarPS16-May-04 19:02 
GeneralRe: Macro explaination Pin
Ryan Binns16-May-04 19:34
Ryan Binns16-May-04 19:34 
GeneralASSERT message Pin
alex.barylski16-May-04 17:56
alex.barylski16-May-04 17:56 
QuestionHow do you close an MFC Dialog application programatically? Pin
Steve Messer16-May-04 17:49
Steve Messer16-May-04 17:49 
AnswerRe: How do you close an MFC Dialog application programatically? Pin
Joe Woodbury16-May-04 19:00
professionalJoe Woodbury16-May-04 19:00 

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.