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

C / C++ / MFC

 
QuestionEntering ? into edit box Pin
Vaclav_4-Oct-11 12:28
Vaclav_4-Oct-11 12:28 
AnswerRe: Entering ? into edit box Pin
Richard Andrew x644-Oct-11 14:46
professionalRichard Andrew x644-Oct-11 14:46 
GeneralRe: Entering ? into edit box Pin
Vaclav_4-Oct-11 15:47
Vaclav_4-Oct-11 15:47 
GeneralRe: Entering ? into edit box Pin
Richard Andrew x644-Oct-11 15:50
professionalRichard Andrew x644-Oct-11 15:50 
GeneralRe: Entering ? into edit box SOLVED Pin
Vaclav_4-Oct-11 16:37
Vaclav_4-Oct-11 16:37 
GeneralRe: Entering ? into edit box SOLVED Pin
Richard Andrew x644-Oct-11 16:38
professionalRichard Andrew x644-Oct-11 16:38 
GeneralRe: Entering ? into edit box Pin
Chuck O'Toole4-Oct-11 16:15
Chuck O'Toole4-Oct-11 16:15 
Questionhow to move button when the dialog is resized? Pin
antonio3434-Oct-11 7:29
antonio3434-Oct-11 7:29 
Hi, I have a modeless dialog with a edit control, and two button.

I show the dialog maximized, I got maximized the edit control with

void CEjemplo::OnSize(UINT nType, int cx, int cy)
{
	CDialogEx::OnSize(nType, cx, cy);
		 
		if (GetDlgItem(IDC_EDIT1))
		{
			  GetDlgItem(IDC_EDIT1)->MoveWindow(5,5,cx-1,cy-1); 
		}

}


But I dont know how to move the button at the botton of the dialog.
Now, when I maximized the dialog the button dont move itself and it is at back of edit control

I tried to do

C#
if (GetDlgItem(IDC_EDIT1))
        {
              GetDlgItem(IDC_EDIT1)->MoveWindow(5,5,cx-1,cy-1);
              GetDlgItem(IDC_button1)->MoveWindow(5,5,cx-1,cy-1);

        }


But not run.
AnswerRe: how to move button when the dialog is resized? Pin
Maximilien4-Oct-11 8:02
Maximilien4-Oct-11 8:02 
GeneralRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 8:17
antonio3434-Oct-11 8:17 
GeneralRe: how to move button when the dialog is resized? Pin
Maximilien4-Oct-11 8:22
Maximilien4-Oct-11 8:22 
GeneralRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 8:45
antonio3434-Oct-11 8:45 
QuestionRe: how to move button when the dialog is resized? Pin
David Crow4-Oct-11 8:54
David Crow4-Oct-11 8:54 
AnswerRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 9:04
antonio3434-Oct-11 9:04 
QuestionRe: how to move button when the dialog is resized? Pin
David Crow4-Oct-11 9:21
David Crow4-Oct-11 9:21 
GeneralRe: how to move button when the dialog is resized? Pin
TheGreatAndPowerfulOz4-Oct-11 9:01
TheGreatAndPowerfulOz4-Oct-11 9:01 
GeneralRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 11:21
antonio3434-Oct-11 11:21 
GeneralRe: how to move button when the dialog is resized? Pin
Chuck O'Toole4-Oct-11 12:22
Chuck O'Toole4-Oct-11 12:22 
GeneralRe: how to move button when the dialog is resized? Pin
TheGreatAndPowerfulOz4-Oct-11 12:28
TheGreatAndPowerfulOz4-Oct-11 12:28 
GeneralRe: how to move button when the dialog is resized? Pin
Chuck O'Toole4-Oct-11 13:55
Chuck O'Toole4-Oct-11 13:55 
AnswerRe: how to move button when the dialog is resized? Pin
David Crow4-Oct-11 9:03
David Crow4-Oct-11 9:03 
GeneralRe: how to move button when the dialog is resized? Pin
TheGreatAndPowerfulOz4-Oct-11 9:37
TheGreatAndPowerfulOz4-Oct-11 9:37 
AnswerRe: how to move button when the dialog is resized? Pin
Chuck O'Toole4-Oct-11 12:11
Chuck O'Toole4-Oct-11 12:11 
AnswerRe: how to move button when the dialog is resized? Pin
Rolf Kristensen8-Oct-11 10:38
Rolf Kristensen8-Oct-11 10:38 
QuestionIssue with CreateInstance and E_NOINTERFACE Pin
BeerFizz4-Oct-11 5:16
BeerFizz4-Oct-11 5:16 

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.