Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: SOCCER robot help? Pin
dopeman23-Feb-08 2:14
dopeman23-Feb-08 2:14 
GeneralError Pin
Maynka22-Feb-08 0:07
Maynka22-Feb-08 0:07 
QuestionRe: Error Pin
CPallini22-Feb-08 0:15
mveCPallini22-Feb-08 0:15 
GeneralRe: Error Pin
David Crow22-Feb-08 3:09
David Crow22-Feb-08 3:09 
GeneralAnsi libs to unicode applications Pin
neyerMat21-Feb-08 23:44
neyerMat21-Feb-08 23:44 
GeneralRe: Ansi libs to unicode applications Pin
CPallini22-Feb-08 0:00
mveCPallini22-Feb-08 0:00 
GeneralRe: Ansi libs to unicode applications Pin
neyerMat22-Feb-08 1:22
neyerMat22-Feb-08 1:22 
GeneralRe: Ansi libs to unicode applications Pin
Rajkumar R22-Feb-08 3:21
Rajkumar R22-Feb-08 3:21 
QuestionHtmlHelp with HH_DISPLAY_TEXT_POPUP in arabic language Pin
Sad0121-Feb-08 23:10
Sad0121-Feb-08 23:10 
GeneralVisual Studio 2003 installation and restart problem Pin
akira3221-Feb-08 22:59
akira3221-Feb-08 22:59 
AnswerRe: Visual Studio 2003 installation and restart problem Pin
Rajesh R Subramanian21-Feb-08 23:07
professionalRajesh R Subramanian21-Feb-08 23:07 
QuestionHow can i convert YUV4:2:2 Data To RGB ?? Pin
Soumyadipta21-Feb-08 22:34
Soumyadipta21-Feb-08 22:34 
GeneralRe: How can i convert YUV4:2:2 Data To RGB ?? Pin
CPallini21-Feb-08 22:55
mveCPallini21-Feb-08 22: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.