Click here to Skip to main content
15,916,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Activating Single instance Pin
PJ Arends10-Sep-05 8:51
professionalPJ Arends10-Sep-05 8:51 
AnswerRe: Activating Single instance Pin
PJ Arends10-Sep-05 8:48
professionalPJ Arends10-Sep-05 8:48 
GeneralRe: Activating Single instance Pin
Jörgen Sigvardsson10-Sep-05 9:33
Jörgen Sigvardsson10-Sep-05 9:33 
AnswerRe: Activating Single instance Pin
David Crow10-Sep-05 17:14
David Crow10-Sep-05 17:14 
AnswerRe: Activating Single instance Pin
PraxUnited9-Oct-09 2:26
PraxUnited9-Oct-09 2:26 
Questionjpeglib.h Pin
aasstt9-Sep-05 21:31
aasstt9-Sep-05 21:31 
AnswerRe: jpeglib.h Pin
Indivara10-Sep-05 3:55
professionalIndivara10-Sep-05 3:55 
QuestionSerial port and USB Pin
shiraztk9-Sep-05 20:52
shiraztk9-Sep-05 20:52 
AnswerRe: Serial port and USB Pin
Tim Orr9-Sep-05 21:34
Tim Orr9-Sep-05 21:34 
GeneralRe: Serial port and USB Pin
Bob Stanneveld10-Sep-05 2:07
Bob Stanneveld10-Sep-05 2:07 
QuestionPrint in PrintPreview problem Pin
mikobi9-Sep-05 20:26
mikobi9-Sep-05 20:26 
AnswerRe: Print in PrintPreview problem Pin
David Crow10-Sep-05 17:15
David Crow10-Sep-05 17:15 
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 

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.