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

C / C++ / MFC

 
GeneralRe: Print in PrintPreview problem Pin
mikobi11-Sep-05 19:21
mikobi11-Sep-05 19:21 
GeneralRe: Print in PrintPreview problem Pin
David Crow12-Sep-05 2:38
David Crow12-Sep-05 2:38 
QuestionCListCtrl: Change position first/last item position in Icon mode Pin
phieu9-Sep-05 18:03
phieu9-Sep-05 18:03 
AnswerRe: CListCtrl: Change position first/last item position in Icon mode Pin
Anonymous9-Sep-05 23:31
Anonymous9-Sep-05 23:31 
QuestionDeclaring Vectors Pin
Anonymous9-Sep-05 15:20
Anonymous9-Sep-05 15:20 
AnswerRe: Declaring Vectors Pin
Chris Losinger9-Sep-05 16:35
professionalChris Losinger9-Sep-05 16:35 
Answer[Message Deleted] Pin
SummoningDan9-Sep-05 16:45
SummoningDan9-Sep-05 16:45 
QuestionBitmap button dose not displayed Pin
johnnyXP9-Sep-05 11:54
johnnyXP9-Sep-05 11:54 
I have created a SDI application (with no Document/View) support. I 'm trying to attach a CBitmap button, but dose not displayed at all.
Here is my code (that handles the WM_CREATE message on the CChildView class):

<br />
int CChildView::OnCreate(LPCREATESTRUCT lpCreateStruct)<br />
{<br />
	if (CWnd::OnCreate(lpCreateStruct) == -1)<br />
		return -1;<br />
<br />
	// TODO:  Add your specialized creation code here<br />
	RECT rect;<br />
	rect.left = 20;<br />
	rect.right = rect.left + 20;<br />
	rect.top = 100;<br />
	rect.bottom = rect.top + 20;<br />
<br />
	CBitmapButton bnPlay;<br />
	if(bnPlay.Create(NULL, WS_CHILD|WS_VISIBLE|BS_OWNERDRAW, <br />
		CRect(&rect), this, IDC_BN_PLAY)==0)<br />
	{<br />
		AfxMessageBox("BnPlay cannot be created", MB_ICONSTOP);<br />
		return -1;<br />
	}<br />
        <br />
        //IDB_BNPLAY is the resource bitmap<br />
	bnPlay.LoadBitmaps(IDB_BNPLAY/*, 0, 0, 0*/);<br />
        bnPlay.SizeToContent();<br />
	return 0;<br />
}<br />


The result of this code is an empty window... Mad | :mad:
AnswerRe: Bitmap button dose not displayed Pin
Michael Dunn9-Sep-05 19:31
sitebuilderMichael Dunn9-Sep-05 19:31 
QuestionBitmap button messages Pin
fleetmanager9-Sep-05 10:50
fleetmanager9-Sep-05 10:50 
AnswerRe: Bitmap button messages Pin
khan++9-Sep-05 21:07
khan++9-Sep-05 21:07 
GeneralRe: Bitmap button messages Pin
fleetmanager12-Sep-05 16:24
fleetmanager12-Sep-05 16:24 
Questiontemplates and libs/dlls Pin
zildjohn019-Sep-05 10:36
zildjohn019-Sep-05 10:36 
AnswerRe: templates and libs/dlls Pin
Chris Losinger9-Sep-05 10:47
professionalChris Losinger9-Sep-05 10:47 
GeneralRe: templates and libs/dlls Pin
zildjohn0110-Sep-05 13:35
zildjohn0110-Sep-05 13:35 
GeneralRe: templates and libs/dlls Pin
Nemanja Trifunovic10-Sep-05 13:44
Nemanja Trifunovic10-Sep-05 13:44 
GeneralRe: templates and libs/dlls Pin
zildjohn0110-Sep-05 15:01
zildjohn0110-Sep-05 15:01 
GeneralRe: templates and libs/dlls Pin
Chris Losinger10-Sep-05 14:30
professionalChris Losinger10-Sep-05 14:30 
Questionmemory leak question Pin
valerie999-Sep-05 9:46
valerie999-Sep-05 9:46 
AnswerRe: memory leak question Pin
David Crow9-Sep-05 10:09
David Crow9-Sep-05 10:09 
GeneralRe: memory leak question Pin
valerie999-Sep-05 10:27
valerie999-Sep-05 10:27 
AnswerRe: memory leak question Pin
QuiJohn9-Sep-05 10:15
QuiJohn9-Sep-05 10:15 
GeneralRe: memory leak question Pin
valerie999-Sep-05 10:32
valerie999-Sep-05 10:32 
GeneralRe: memory leak question Pin
Chris Losinger9-Sep-05 10:49
professionalChris Losinger9-Sep-05 10:49 
AnswerRe: memory leak question Pin
PJ Arends9-Sep-05 11:07
professionalPJ Arends9-Sep-05 11:07 

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.