Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Does Worker Thread Have a Message Queue Pin
Erudite_Eric2-Jun-12 21:13
Erudite_Eric2-Jun-12 21:13 
GeneralRe: Does Worker Thread Have a Message Queue Pin
Albert Holguin4-Jun-12 8:09
professionalAlbert Holguin4-Jun-12 8:09 
Questionhow to right vector of pointers to binary file ? Pin
Asaf Shay2-Jun-12 10:02
Asaf Shay2-Jun-12 10:02 
AnswerRe: how to right vector of pointers to binary file ? Pin
Chris Losinger2-Jun-12 17:22
professionalChris Losinger2-Jun-12 17:22 
AnswerRe: how to right vector of pointers to binary file ? Pin
«_Superman_»2-Jun-12 17:29
professional«_Superman_»2-Jun-12 17:29 
GeneralRe: how to right vector of pointers to binary file ? Pin
Asaf Shay3-Jun-12 6:39
Asaf Shay3-Jun-12 6:39 
GeneralRe: how to right vector of pointers to binary file ? Pin
«_Superman_»3-Jun-12 15:19
professional«_Superman_»3-Jun-12 15:19 
QuestionHow to get static splitter right pane dimensions - size? Pin
Vaclav_1-Jun-12 9:56
Vaclav_1-Jun-12 9:56 
After frustrating experiments with CTabCtrl based classes I am using simple property sheets to have a tabbed pane in static splitter. Does the job for me, with one exception.
The standard property frame is a pop-up of default dimensions ( taken from the max page ) and when changed to child I can move it to the correct position in the splitter.
And here is the "but" - the right and bottom dimension are not correct( but usable) and the only way I figured it out to adjust it is to get the parent (splitter) frame dimensions.
Works, and here comes another but - these are the whole splitter frame dimensions.

I would like to know if there is a easy way to get just the right pane dimensions.

BTW - the panes are created with constant sizes.
I could just hack it and make the sizes global variables.

Here is my very basic code:

void C_RightPane_Form::OnProperties()
{
CRect rect;
GetClientRect(rect);
C_Splitter_Static *pCFrameWnd = (C_Splitter_Static*) GetParentFrame( );
ASSERT_VALID(pCFrameWnd);
pCFrameWnd->GetClientRect(rect); // whole frame
// TODO need only right pane

if (m_pPropFrame == NULL)
{
m_pPropFrame = new CPropertyFrame1;
//CRect rect(0, 0, 0, 0);
CString strTitle;
VERIFY(strTitle.LoadString(IDS_PROPSHT_CAPTION1));
if (!m_pPropFrame->Create(NULL, strTitle,
WS_CHILD |
!WS_POPUP | WS_CAPTION | WS_SYSMENU, rect, this))
{
delete m_pPropFrame;
m_pPropFrame = NULL;
return;
}
//m_pPropFrame->CenterWindow();
m_pPropFrame->MoveWindow(0,0,rect.right, rect.bottom);
}

Thanks for your time.
Vaclav
AnswerRe: How to get static splitter right pane dimensions - size? Pin
«_Superman_»1-Jun-12 17:59
professional«_Superman_»1-Jun-12 17:59 
QuestionCopying vector of pointers to another vector Pin
a1_shay1-Jun-12 6:58
a1_shay1-Jun-12 6:58 
QuestionRe: Copying vector of pointers to another vector Pin
Code-o-mat1-Jun-12 10:58
Code-o-mat1-Jun-12 10:58 
AnswerRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 11:29
a1_shay1-Jun-12 11:29 
GeneralRe: Copying vector of pointers to another vector Pin
lewax001-Jun-12 11:56
lewax001-Jun-12 11:56 
GeneralRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 12:06
a1_shay1-Jun-12 12:06 
GeneralRe: Copying vector of pointers to another vector Pin
lewax001-Jun-12 12:14
lewax001-Jun-12 12:14 
GeneralRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 12:30
a1_shay1-Jun-12 12:30 
QuestionUse OLE Pin
MKC0021-Jun-12 5:42
MKC0021-Jun-12 5:42 
SuggestionRe: Use OLE Pin
David Crow1-Jun-12 6:49
David Crow1-Jun-12 6:49 
GeneralRe: Use OLE Pin
MKC0021-Jun-12 23:15
MKC0021-Jun-12 23:15 
QuestionRe: Use OLE Pin
David Crow4-Jun-12 2:40
David Crow4-Jun-12 2:40 
AnswerRe: Use OLE Pin
MKC0024-Jun-12 4:33
MKC0024-Jun-12 4:33 
AnswerRe: Use OLE Pin
David Crow4-Jun-12 5:07
David Crow4-Jun-12 5:07 
GeneralRe: Use OLE Pin
MKC0024-Jun-12 18:55
MKC0024-Jun-12 18:55 
AnswerRe: Use OLE Pin
David Crow5-Jun-12 2:25
David Crow5-Jun-12 2:25 
GeneralRe: Use OLE Pin
MKC0026-Jun-12 1:22
MKC0026-Jun-12 1: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.