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

C / C++ / MFC

 
GeneralRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 2:22
mveCPallini22-Feb-08 2:22 
GeneralRe: Preventing an application from shutting down? Pin
ritz123422-Feb-08 2:28
ritz123422-Feb-08 2:28 
GeneralRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 2:31
mveCPallini22-Feb-08 2:31 
GeneralRe: Preventing an application from shutting down? Pin
jhwurmbach22-Feb-08 6:07
jhwurmbach22-Feb-08 6:07 
GeneralRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 7:31
mveCPallini22-Feb-08 7:31 
AnswerRe: Preventing an application from shutting down? Pin
Maximilien22-Feb-08 2:27
Maximilien22-Feb-08 2:27 
GeneralRe: Preventing an application from shutting down? Pin
ritz123422-Feb-08 2:30
ritz123422-Feb-08 2:30 
AnswerNo Answer. Pin
jhwurmbach22-Feb-08 6:10
jhwurmbach22-Feb-08 6:10 
AnswerRe: Preventing an application from shutting down? [modified] Pin
User 238229222-Feb-08 2:38
User 238229222-Feb-08 2:38 
GeneralRe: Preventing an application from shutting down? Pin
Maxwell Chen22-Feb-08 3:27
Maxwell Chen22-Feb-08 3:27 
AnswerRe: Preventing an application from shutting down? Pin
Cedric Moonen22-Feb-08 2:42
Cedric Moonen22-Feb-08 2:42 
AnswerRe: Preventing an application from shutting down? Pin
David Crow22-Feb-08 3:04
David Crow22-Feb-08 3:04 
GeneralRe: Preventing an application from shutting down? Pin
Maxwell Chen22-Feb-08 3:30
Maxwell Chen22-Feb-08 3:30 
GeneralRe: Preventing an application from shutting down? Pin
David Crow22-Feb-08 3:46
David Crow22-Feb-08 3:46 
AnswerRe: Preventing an application from shutting down? Pin
Dr. Emmett Brown22-Feb-08 4:51
Dr. Emmett Brown22-Feb-08 4:51 
GeneralRe: Preventing an application from shutting down? Pin
David Crow22-Feb-08 8:03
David Crow22-Feb-08 8:03 
AnswerRe: Preventing an application from shutting down? Pin
Hamid_RT23-Feb-08 1:32
Hamid_RT23-Feb-08 1:32 
GeneralODBC classes or ADO connection Pin
Demian Panello22-Feb-08 0:51
Demian Panello22-Feb-08 0:51 
GeneralRe: ODBC classes or ADO connection Pin
Ali Rafiee22-Feb-08 5:22
Ali Rafiee22-Feb-08 5:22 
GeneralProblem with CBitmapButton Pin
john563222-Feb-08 0:32
john563222-Feb-08 0:32 
GeneralRe: Problem with CBitmapButton Pin
csc22-Feb-08 1:35
csc22-Feb-08 1:35 
I've made a test with your code (using MSVC++ 6.0) :

<br />
class CMyDialog : public CDialog<br />
{<br />
:<br />
// somewhere<br />
CBitmapButton m_Btn1;<br />
:<br />
}<br />
<br />
BOOL CMyDialog::OnInitDialog() <br />
{<br />
CDialog::OnInitDialog();<br />
:<br />
m_Btn1.Create("",WS_CHILD|WS_VISIBLE|BS_OWNERDRAW,CRect(0,10,30,50),this,12345);<br />
m_Btn1.LoadBitmaps(IDB_BITMAP_TEST1,IDB_BITMAP_TEST2); <br />
:<br />
return TRUE;<br />
}<br />


... and it work's fine.

Only thing is, that the button's coords a relative to the client area of the dialog ... means the button with CRect(0,10,30,50) appears in the upper left corner of the dialog.

Are you sure that it is not shown ?
Or is it hidden by an other control / item ?

Confused | :confused:
AnswerRe: Problem with CBitmapButton Pin
Rajkumar R22-Feb-08 3:31
Rajkumar R22-Feb-08 3:31 
GeneralRe: Problem with CBitmapButton Pin
Hamid_RT23-Feb-08 1:34
Hamid_RT23-Feb-08 1:34 
QuestionSOCCER robot help? Pin
dopeman22-Feb-08 0:23
dopeman22-Feb-08 0:23 
AnswerRe: SOCCER robot help? Pin
CPallini22-Feb-08 0:55
mveCPallini22-Feb-08 0:55 

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.