Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use TRACE() in Win32 Applications Pin
Roger Allen16-Jan-05 23:20
Roger Allen16-Jan-05 23:20 
AnswerRe: How to use TRACE() in Win32 Applications Pin
Martin Koorts17-Jan-05 1:06
Martin Koorts17-Jan-05 1:06 
AnswerRe: How to use TRACE() in Win32 Applications Pin
David Crow17-Jan-05 3:55
David Crow17-Jan-05 3:55 
GeneralConvert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
sam_software16-Jan-05 22:11
sam_software16-Jan-05 22:11 
GeneralRe: Convert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
Martin Koorts16-Jan-05 23:22
Martin Koorts16-Jan-05 23:22 
GeneralRe: Convert Count in Milliseconds to Date and Time format(dd:mm:yy hours:min:sec:milliseconds) Pin
David Crow17-Jan-05 4:02
David Crow17-Jan-05 4:02 
Generalquestion about NetUserGetInfo Pin
busisbus16-Jan-05 19:13
busisbus16-Jan-05 19:13 
GeneralSplitter Window Pin
Mahendra_78616-Jan-05 18:56
Mahendra_78616-Jan-05 18:56 
I am creating a 2x2 spllitter window in a SDI application.

// OnCreateClient of SDI Frame Window
...
VERIFY(m_wndSplitter.CreateStatic(this, m_rows, m_cols));
...

I want every pane to be of the same size (plus-minus 1 pixel). In
OnSize I do something like:

// OnSize of Frame Window
...
m_wndSplitter.GetClientRect(rect);
int row_height = rect.Height();
int col_width = rect.Width();
row_height /= 2;
col_width /= 2;
m_wndSplitter.SetRowInfo(0, row_height, 100);
m_wndSplitter.SetRowInfo(1, row_height, 100);
m_wndSplitter.SetColumnInfo(0, col_width, 100);
m_wndSplitter.SetColumnInfo(1, col_width, 100);
m_wndSplitter.RecalcLayout();
...

HOWEVER probably due to the "splitting margin" or border
between panes, the pane(0, 0) is larger than the other panes
with a difference of about 11 pixels in size. Other than
"manually" accounting for the border thickness, is there
a better way of making the panes same size.

Thanks in anticipation.

GeneralRe: Splitter Window Pin
Iain Clarke, Warrior Programmer17-Jan-05 0:39
Iain Clarke, Warrior Programmer17-Jan-05 0:39 
GeneralRe: Splitter Window Pin
Mahendra_78617-Jan-05 14:19
Mahendra_78617-Jan-05 14:19 
GeneralRe: Splitter Window Pin
Mahendra_78617-Jan-05 14:42
Mahendra_78617-Jan-05 14:42 
Questionhow to delete class from workspace Pin
Ritu Kwatra16-Jan-05 18:41
Ritu Kwatra16-Jan-05 18:41 
AnswerRe: how to delete class from workspace Pin
geo_m16-Jan-05 20:16
geo_m16-Jan-05 20:16 
GeneralRe: how to delete class from workspace Pin
Ritu Kwatra16-Jan-05 22:37
Ritu Kwatra16-Jan-05 22:37 
AnswerRe: how to delete class from workspace Pin
eli1502197916-Jan-05 22:22
eli1502197916-Jan-05 22:22 
GeneralOpen With... Pin
dSolariuM16-Jan-05 18:27
dSolariuM16-Jan-05 18:27 
GeneralRe: Open With... Pin
David Crow17-Jan-05 4:05
David Crow17-Jan-05 4:05 
GeneralShow and Hide the Menu bar dynamically Pin
16-Jan-05 16:56
suss16-Jan-05 16:56 
GeneralRe: Show and Hide the Menu bar dynamically Pin
pc_dev16-Jan-05 19:46
pc_dev16-Jan-05 19:46 
GeneralRe: Show and Hide the Menu bar dynamically Pin
mclpun17-Jan-05 0:12
mclpun17-Jan-05 0:12 
GeneralASCII value question Pin
Anonymous16-Jan-05 16:22
Anonymous16-Jan-05 16:22 
GeneralRe: ASCII value question Pin
ThatsAlok16-Jan-05 17:59
ThatsAlok16-Jan-05 17:59 
GeneralRe: ASCII value question Pin
David Crow17-Jan-05 4:15
David Crow17-Jan-05 4:15 
GeneralRe: ASCII value question Pin
Adam Fowler17-Jan-05 5:43
Adam Fowler17-Jan-05 5:43 
GeneralA Simple Read/ Write Application Pin
CT Menot16-Jan-05 16:22
CT Menot16-Jan-05 16:22 

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.