Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Programmers needed Pin
KaЯl6-Oct-03 3:13
KaЯl6-Oct-03 3:13 
GeneralC++ Question. Pin
WREY5-Oct-03 17:44
WREY5-Oct-03 17:44 
GeneralRe: C++ Question. Pin
Anonymous5-Oct-03 20:47
Anonymous5-Oct-03 20:47 
GeneralRe: C++ Question. Pin
WREY5-Oct-03 21:19
WREY5-Oct-03 21:19 
GeneralRe: C++ Question. Pin
Johnny ²6-Oct-03 1:05
Johnny ²6-Oct-03 1:05 
GeneralRe: C++ Question. Pin
WREY6-Oct-03 20:35
WREY6-Oct-03 20:35 
QuestionAny SetWindowOrg(x,y) Gurus? Pin
spiritualfields5-Oct-03 17:10
spiritualfields5-Oct-03 17:10 
GeneralMoving Windows Pin
DougW485-Oct-03 16:04
DougW485-Oct-03 16:04 
I'm trying to align static text windows on a CFormView dialog. I used the visual editor, but sometimes there's a larger gap between text windows than others, so I want to make this even.

I've tried to adjust the window positions in the OnInitialUpdate function. The confusing part to me is that the following 4 lines end up putting my static text window in random places within my application. Between the 3rd and 4th lines of code I would obviously adjust the CRect borders, but I was hoping somebody could give me a reason as to how and why these lines of code cause my window to appear (if it shows at all) in random locations within my dialog. How can I fix this? Thanks a ton!!! Big Grin | :-D

CWnd * MyWindow = GetDlgItem( NUMBER_STATIC );
ASSERT( NUMBER_STATIC );
MyWindow->GetWindowRect( &WindowRect );
MyWindow->MoveWindow( &WindowRect );

Douglas A. Wright
dawrigh3@kent.edu
GeneralRe: Moving Windows Pin
Beer265-Oct-03 16:09
Beer265-Oct-03 16:09 
GeneralRe: Moving Windows Pin
Dave Bryant5-Oct-03 16:10
Dave Bryant5-Oct-03 16:10 
Questionloosing my backspace messages??? Pin
Beer265-Oct-03 15:38
Beer265-Oct-03 15:38 
AnswerRe: loosing my backspace messages??? Pin
J. Dunlap5-Oct-03 15:53
J. Dunlap5-Oct-03 15:53 
GeneralRe: loosing my backspace messages??? Pin
Beer265-Oct-03 15:57
Beer265-Oct-03 15:57 
GeneralRe: loosing my backspace messages??? Pin
J. Dunlap5-Oct-03 16:28
J. Dunlap5-Oct-03 16:28 
AnswerRe: loosing my backspace messages??? Pin
Michael Dunn5-Oct-03 19:26
sitebuilderMichael Dunn5-Oct-03 19:26 
GeneralRe: loosing my backspace messages??? Pin
Beer266-Oct-03 3:28
Beer266-Oct-03 3:28 
GeneralSQL Database Pin
don7cry5-Oct-03 15:21
don7cry5-Oct-03 15:21 
GeneralRe: SQL Database Pin
alex.barylski5-Oct-03 16:12
alex.barylski5-Oct-03 16:12 
Generaltext color and font Pin
no_life5-Oct-03 12:51
no_life5-Oct-03 12:51 
GeneralRe: text color and font Pin
alex.barylski5-Oct-03 16:29
alex.barylski5-Oct-03 16:29 
GeneralRe: text color and font Pin
J. Dunlap5-Oct-03 16:32
J. Dunlap5-Oct-03 16:32 
GeneralRe: text color and font Pin
no_life6-Oct-03 17:11
no_life6-Oct-03 17:11 
GeneralRe: text color and font Pin
no_life7-Oct-03 8:55
no_life7-Oct-03 8:55 
GeneralRe: text color and font Pin
alex.barylski7-Oct-03 9:16
alex.barylski7-Oct-03 9:16 
GeneralRe: text color and font Pin
no_life7-Oct-03 20:03
no_life7-Oct-03 20:03 

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.