Click here to Skip to main content
16,010,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing HTMLView with HTML resources Pin
Aaron Schaefer11-Mar-02 6:57
Aaron Schaefer11-Mar-02 6:57 
GeneralRe: Using HTMLView with HTML resources Pin
Mazdak11-Mar-02 7:00
Mazdak11-Mar-02 7:00 
GeneralRe: Using HTMLView with HTML resources Pin
Michael Dunn11-Mar-02 7:14
sitebuilderMichael Dunn11-Mar-02 7:14 
GeneralRe: Using HTMLView with HTML resources Pin
pba_11-Mar-02 7:15
pba_11-Mar-02 7:15 
GeneralReporting Property Page Button to Parent Dialog Pin
MJ_Karas11-Mar-02 6:32
MJ_Karas11-Mar-02 6:32 
GeneralRe: Reporting Property Page Button to Parent Dialog Pin
Joaquín M López Muñoz11-Mar-02 7:32
Joaquín M López Muñoz11-Mar-02 7:32 
GeneralRe: Reporting Property Page Button to Parent Dialog Pin
MJ_Karas11-Mar-02 8:16
MJ_Karas11-Mar-02 8:16 
GeneralSetWindowPos - trying to move a button Pin
dazinith11-Mar-02 6:27
dazinith11-Mar-02 6:27 
Hio.. im trying to move a button down like 10 pixels, but not having any luck..

CButton* pSelectBtn = (CButton*)GetDlgItem(IDC_CREATESELECTBTN);
CRect SelectRect;
pSelectBtn->GetWindowRect(SelectRect);
SelectRect.top +=10;
pSelectBtn->SetWindowPos(&wndTop, SelectRect.left, SelectRect.top, 0, 0, SWP_NOSIZE);


whenever i do this the button just dissapears.. if i change the flag to SWP_NOMOVE and set the width and height it will resize the button, but i just cant seem to move it.. even if you remove the 'SelectRect.top +=10;' the button still dissapears.. i have tried doing GetWindowRect, and then passing SetWindowPos(&wndTop, SelectRect.left, SelectRect.top, (SelectRect.right - SelectRect.left), (SelectRect.bottom - SelectRect.top), SWP_NOSIZE), and even then the button just dissapears..

i know its moving, but obviously im giving it the wrong left and top parameters.. any helP?


-dz
GeneralRe: SetWindowPos - trying to move a button Pin
Tim Smith11-Mar-02 6:37
Tim Smith11-Mar-02 6:37 
GeneralRe: SetWindowPos - trying to move a button Pin
dazinith11-Mar-02 6:43
dazinith11-Mar-02 6:43 
GeneralRe: SetWindowPos - trying to move a button Pin
Carlos Antollini11-Mar-02 7:11
Carlos Antollini11-Mar-02 7:11 
GeneralMFC protected constructor Pin
11-Mar-02 5:54
suss11-Mar-02 5:54 
GeneralRe: MFC protected constructor Pin
Joaquín M López Muñoz11-Mar-02 6:08
Joaquín M López Muñoz11-Mar-02 6:08 
Generalhelp with printing please Pin
IGeorgeI11-Mar-02 5:27
IGeorgeI11-Mar-02 5:27 
GeneralRe: help with printing please Pin
Paul M Watt11-Mar-02 6:06
mentorPaul M Watt11-Mar-02 6:06 
GeneralCode Segment Question Pin
Loli1011-Mar-02 4:21
Loli1011-Mar-02 4:21 
GeneralRe: Code Segment Question Pin
Tomasz Sowinski11-Mar-02 4:24
Tomasz Sowinski11-Mar-02 4:24 
GeneralRe: Code Segment Question Pin
Loli1011-Mar-02 5:48
Loli1011-Mar-02 5:48 
GeneralRe: Code Segment Question Pin
MJ_Karas11-Mar-02 6:43
MJ_Karas11-Mar-02 6:43 
GeneralRe: Code Segment Question Pin
Loli1011-Mar-02 8:14
Loli1011-Mar-02 8:14 
GeneralProblem with ATL 7.0 service (HELP!) Pin
Le centriste11-Mar-02 3:50
Le centriste11-Mar-02 3:50 
GeneralHeader file Tips wanted Pin
11-Mar-02 2:40
suss11-Mar-02 2:40 
GeneralRe: Header file Tips wanted Pin
Carlos Antollini11-Mar-02 3:31
Carlos Antollini11-Mar-02 3:31 
GeneralRe: Header file Tips wanted Pin
Tomasz Sowinski11-Mar-02 3:41
Tomasz Sowinski11-Mar-02 3:41 
GeneralRe: Header file Tips wanted Pin
Joao Vaz11-Mar-02 4:52
Joao Vaz11-Mar-02 4:52 

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.