Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is wrong with this program? Pin
Chris Losinger15-Sep-09 14:55
professionalChris Losinger15-Sep-09 14:55 
AnswerRe: What is wrong with this program? Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:19
Iain Clarke, Warrior Programmer15-Sep-09 21:19 
QuestionPassword recovery for .LIB file Pin
DallasProgrammer15-Sep-09 6:36
DallasProgrammer15-Sep-09 6:36 
AnswerRe: Password recovery for .LIB file Pin
Stuart Dootson15-Sep-09 6:56
professionalStuart Dootson15-Sep-09 6:56 
GeneralRe: Password recovery for .LIB file Pin
DallasProgrammer15-Sep-09 8:27
DallasProgrammer15-Sep-09 8:27 
GeneralRe: Password recovery for .LIB file Pin
Cedric Moonen15-Sep-09 8:45
Cedric Moonen15-Sep-09 8:45 
GeneralRe: Password recovery for .LIB file Pin
«_Superman_»15-Sep-09 19:38
professional«_Superman_»15-Sep-09 19:38 
QuestionRe: Password recovery for .LIB file Pin
David Crow15-Sep-09 9:35
David Crow15-Sep-09 9:35 
AnswerRe: Password recovery for .LIB file Pin
Chris Losinger15-Sep-09 12:06
professionalChris Losinger15-Sep-09 12:06 
QuestionRe: Password recovery for .LIB file Pin
Maximilien15-Sep-09 9:42
Maximilien15-Sep-09 9:42 
QuestionQuestion on g++ compiler options Pin
minkowski15-Sep-09 6:23
minkowski15-Sep-09 6:23 
AnswerRe: Question on g++ compiler options Pin
Stuart Dootson15-Sep-09 7:06
professionalStuart Dootson15-Sep-09 7:06 
GeneralRe: Question on g++ compiler options Pin
minkowski15-Sep-09 22:47
minkowski15-Sep-09 22:47 
GeneralRe: Question on g++ compiler options Pin
Stuart Dootson15-Sep-09 23:33
professionalStuart Dootson15-Sep-09 23:33 
GeneralRe: Question on g++ compiler options Pin
minkowski16-Sep-09 0:29
minkowski16-Sep-09 0:29 
GeneralRe: Question on g++ compiler options Pin
Stuart Dootson16-Sep-09 0:37
professionalStuart Dootson16-Sep-09 0:37 
GeneralRe: Question on g++ compiler options Pin
minkowski16-Sep-09 1:00
minkowski16-Sep-09 1:00 
QuestionHow can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 4:31
Neil Urquhart15-Sep-09 4:31 
AnswerRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Code-o-mat15-Sep-09 4:48
Code-o-mat15-Sep-09 4:48 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 6:02
Neil Urquhart15-Sep-09 6:02 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 6:09
Neil Urquhart15-Sep-09 6:09 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Code-o-mat15-Sep-09 6:13
Code-o-mat15-Sep-09 6:13 
AnswerRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog [modified] Pin
Moak15-Sep-09 14:09
Moak15-Sep-09 14:09 
GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 20:04
Neil Urquhart15-Sep-09 20:04 
I tried using SetParent on all the buttons as below but now I don't see any buttons anywhere ! Did I miss something ? Do I need to set some extra things ?

BOOL CDesignEditDlg::OnInitDialog() <br />
{<br />
	CDialog::OnInitDialog();<br />
<br />
	<br />
	// TODO: Add extra initialization here<br />
	CWnd* pImage ;<br />
	WINDOWPLACEMENT wpImage ;<br />
	CRect rect;<br />
	CPoint imgPos ;<br />
<br />
	// Get the current top left position of the window<br />
	pImage = GetDlgItem(IDC_PAGEIMAGE) ;<br />
	pImage->GetWindowPlacement(&wpImage);<br />
	imgPos.x = wpImage.rcNormalPosition.left ;<br />
	imgPos.y = wpImage.rcNormalPosition.top ;<br />
<br />
	//pImage->ModifyStyle(0, WS_CLIPSIBLINGS);<br />
<br />
	int b ;<br />
	for(b = 0 ; cButPos[b].id > 0 ; b++) {<br />
		// Move the button<br />
		pImage = GetDlgItem(cButPos[b].id);<br />
		pImage->GetWindowRect(rect);<br />
		pImage->MoveWindow(imgPos.x + cButPos[b].x, imgPos.y + cButPos[b].y, rect.Width(), rect.Height(), TRUE);<br />
<br />
		// Make each CButton a child to CDesignEditDlg<br />
		pImage->SetParent(this) ;<br />
	}<br />
<br />
	<br />
	// Load the page images<br />
	cBmp[0].LoadBitmap(IDB_IMAGE0);	// This is the unselect version<br />
	cBmp[1].LoadBitmap(IDB_IMAGE1);<br />
/*	cBmp[2].LoadBitmap(IDB_IMAGE2);<br />
	cBmp[3].LoadBitmap(IDB_IMAGE3);<br />
	cBmp[4].LoadBitmap(IDB_IMAGE4);<br />
	cBmp[5].LoadBitmap(IDB_IMAGE5);<br />
	cBmp[6].LoadBitmap(IDB_IMAGE6);<br />
	cBmp[7].LoadBitmap(IDB_IMAGE7);<br />
	cBmp[8].LoadBitmap(IDB_IMAGE8);<br />
	cBmp[9].LoadBitmap(IDB_IMAGE9);<br />
	cBmp[10].LoadBitmap(IDB_IMAGE10);<br />
	cBmp[11].LoadBitmap(IDB_IMAGE11);<br />
	cBmp[12].LoadBitmap(IDB_IMAGE12);<br />
	cBmp[13].LoadBitmap(IDB_IMAGE13);<br />
	cBmp[14].LoadBitmap(IDB_IMAGE14);<br />
	cBmp[15].LoadBitmap(IDB_IMAGE15);<br />
	cBmp[16].LoadBitmap(IDB_IMAGE16);<br />
	cBmp[17].LoadBitmap(IDB_IMAGE17);<br />
	cBmp[18].LoadBitmap(IDB_IMAGE18);*/<br />
	<br />
	return TRUE;  // return TRUE unless you set the focus to a control<br />
	              // EXCEPTION: OCX Property Pages should return FALSE<br />
}

GeneralRe: How can I force the redraw of buttons which overlay a picture bitmap in a Dialog Pin
Neil Urquhart15-Sep-09 20:57
Neil Urquhart15-Sep-09 20:57 

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.