Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Assuming the coordinate system is correct (Client View, Control View, Screen View), which is a big assumption at this point, the line
VB
m_Button1.MoveWindow(myRect.right, myRect.bottom,
seems to want to put the left edge of the button at the right edge of the main window, therefore, it's not visible since it's off the right side of the main window. Similarly for the y coordinate, you're putting the top of the button starting at the bottom of the window, therefore it's outside the viewing area
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 
QuestionWin API custom control in a DLL Pin
Igen14-Oct-11 4:35
Igen14-Oct-11 4:35 
AnswerRe: Win API custom control in a DLL Pin
Igen14-Oct-11 5:12
Igen14-Oct-11 5:12 
QuestionHow to clear Object memory of Map Pin
002comp3-Oct-11 21:05
002comp3-Oct-11 21:05 
AnswerRe: How to clear Object memory of Map Pin
Richard MacCutchan3-Oct-11 21:26
mveRichard MacCutchan3-Oct-11 21:26 
GeneralRe: How to clear Object memory of Map Pin
002comp3-Oct-11 22:05
002comp3-Oct-11 22:05 
GeneralRe: How to clear Object memory of Map Pin
Richard MacCutchan3-Oct-11 22:24
mveRichard MacCutchan3-Oct-11 22:24 
GeneralRe: How to clear Object memory of Map Pin
002comp3-Oct-11 22:39
002comp3-Oct-11 22:39 
GeneralRe: How to clear Object memory of Map Pin
Richard MacCutchan4-Oct-11 1:11
mveRichard MacCutchan4-Oct-11 1:11 
GeneralRe: How to clear Object memory of Map Pin
002comp4-Oct-11 2:22
002comp4-Oct-11 2:22 
GeneralRe: How to clear Object memory of Map Pin
Richard MacCutchan4-Oct-11 2:25
mveRichard MacCutchan4-Oct-11 2:25 
AnswerRe: How to clear Object memory of Map Pin
ThatsAlok3-Oct-11 23:53
ThatsAlok3-Oct-11 23:53 
GeneralRe: How to clear Object memory of Map [ how to delete newed object tht we store in map] Pin
002comp4-Oct-11 0:10
002comp4-Oct-11 0:10 

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.