Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket Communications - buffering problems Pin
Joaquín M López Muñoz17-Dec-01 9:05
Joaquín M López Muñoz17-Dec-01 9:05 
GeneralHatched Brushes + a Scrolling View = Wacky Lines Pin
D.D. de Kerf17-Dec-01 5:15
D.D. de Kerf17-Dec-01 5:15 
GeneralRe: Hatched Brushes + a Scrolling View = Wacky Lines Pin
Joaquín M López Muñoz17-Dec-01 5:29
Joaquín M López Muñoz17-Dec-01 5:29 
GeneralMAXIMIZE A DIALOG Pin
jafrazee17-Dec-01 4:42
jafrazee17-Dec-01 4:42 
GeneralRe: MAXIMIZE A DIALOG Pin
Ernest Laurentin17-Dec-01 5:14
Ernest Laurentin17-Dec-01 5:14 
GeneralRe: MAXIMIZE A DIALOG Pin
Eugene Pustovoyt17-Dec-01 8:25
Eugene Pustovoyt17-Dec-01 8:25 
GeneralRe: MAXIMIZE A DIALOG Pin
jafrazee17-Dec-01 9:58
jafrazee17-Dec-01 9:58 
GeneralCalcWindowRect for CFrameWnd Pin
17-Dec-01 4:38
suss17-Dec-01 4:38 
CalcWindowRect for CFrameWnd

Hi, in MFC the class CFrameWnd do not have it's own implementation
of the virtual function CalcWindowRect. I need a CalcWindowRect which
given a certain-sized client rectangle, adds the heights and widths
of all the toolbars, menus, window frames, scrollbars and status bars.
Did I forget something? Have anyone already written one for lazy me
I could use?

Otherwise, I guess I have to do it myself. Anyone knows how to calculate
the height of the status bar? The following code do not work,
nStatusbarHeight is zero afterwards, however the status bar works fine,
I can update the text of the pane with index ID_INDICATOR_CAPS for example.

CRect rect;
m_wndStatusBar.GetItemRect(ID_INDICATOR_CAPS, rect);
int nStatusbarHeight = rect.Height();

Thanks for all input, Patric
GeneralRe: CalcWindowRect for CFrameWnd Pin
Michael Dunn17-Dec-01 7:28
sitebuilderMichael Dunn17-Dec-01 7:28 
GeneralRe: CalcWindowRect for CFrameWnd Pin
17-Dec-01 8:14
suss17-Dec-01 8:14 
GeneralRe: CalcWindowRect for CFrameWnd Pin
Joaquín M López Muñoz17-Dec-01 8:27
Joaquín M López Muñoz17-Dec-01 8:27 
GeneralRe: CalcWindowRect for CFrameWnd Pin
17-Dec-01 17:34
suss17-Dec-01 17:34 
Generalpowerpoint automation problem Pin
Kuniva17-Dec-01 4:05
Kuniva17-Dec-01 4:05 
GeneralConvert Calender ! Pin
Hadi Rezaee17-Dec-01 3:48
Hadi Rezaee17-Dec-01 3:48 
GeneralRe: Convert Calender ! Pin
Rashid Thadha17-Dec-01 4:12
Rashid Thadha17-Dec-01 4:12 
GeneralRe: Convert Calender ! Pin
Hadi Rezaee17-Dec-01 5:21
Hadi Rezaee17-Dec-01 5:21 
Questionhow to read ChooseColor() selection without exiting the dialog Pin
17-Dec-01 3:31
suss17-Dec-01 3:31 
Generalcontrol a downloaded activex control Pin
SAWilde17-Dec-01 2:40
SAWilde17-Dec-01 2:40 
GeneralRe: control a downloaded activex control Pin
Todd.Harvey18-Dec-01 9:07
Todd.Harvey18-Dec-01 9:07 
GeneralRe: control a downloaded activex control Pin
SAWilde19-Dec-01 0:01
SAWilde19-Dec-01 0:01 
QuestionHow to use Custom Resources Pin
Jon Hulatt17-Dec-01 1:41
Jon Hulatt17-Dec-01 1:41 
AnswerRe: How to use Custom Resources Pin
Ernest Laurentin17-Dec-01 4:36
Ernest Laurentin17-Dec-01 4:36 
GeneralHelp with multi-column ListBox Pin
Eugene Pustovoyt17-Dec-01 1:23
Eugene Pustovoyt17-Dec-01 1:23 
GeneralRe: Help with multi-column ListBox Pin
17-Dec-01 2:23
suss17-Dec-01 2:23 
GeneralRe: Help with multi-column ListBox Pin
Eugene Pustovoyt17-Dec-01 2:50
Eugene Pustovoyt17-Dec-01 2:50 

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.