Click here to Skip to main content
15,911,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hide Internet Explorer Menu Bars and Toolbars Pin
Alok Bhardwaj29-Dec-04 19:35
Alok Bhardwaj29-Dec-04 19:35 
QuestionHow to prevent from inhertance Pin
Kiran Kumar Singani28-Dec-04 0:26
Kiran Kumar Singani28-Dec-04 0:26 
AnswerRe: How to prevent from inhertance Pin
Prakash Nadar28-Dec-04 0:34
Prakash Nadar28-Dec-04 0:34 
GeneralRe: How to prevent from inhertance Pin
virtualkirankumar28-Dec-04 0:40
virtualkirankumar28-Dec-04 0:40 
GeneralRe: How to prevent from inhertance Pin
Prakash Nadar28-Dec-04 0:46
Prakash Nadar28-Dec-04 0:46 
AnswerRe: How to prevent from inhertance Pin
jan larsen28-Dec-04 1:39
jan larsen28-Dec-04 1:39 
AnswerRe: How to prevent from inhertance Pin
CP Visitor28-Dec-04 2:34
CP Visitor28-Dec-04 2:34 
GeneralSmall Prolem with OptionTree Pin
Fenderman27-Dec-04 23:33
Fenderman27-Dec-04 23:33 
Hi!

I'm using the great COptionTree (http://www.codeproject.com/treectrl/coptiontree.asp)

So far no problems, but then I tried to combine it with a "Sidebanner" (http://www.kinkycode.com/?section=cppdev&sub=kcsidebannerwnd)....in order to have a small image on top of my dialog..

But now i have the problem, that the optiontree "moves under" the bannerimage...

Now here my question..how can i set that the y-position of the optiontree "moves" 40 pixels downwards..?

I think the OnSize function is responsable for my problem..so here the code which i have in my dialog..:
Isn't it possible to just move the OptionTree 40 pixels downwards??

Perhaps somebody can tell me the code, i have to add

void CPrefsDlg::OnSize(UINT nType, int cx, int cy)
{
// Resize the control
if ((cx > 0) && (cy > 0))
{
if (::IsWindow(m_otTree.GetSafeHwnd()))
{
m_otTree.MoveWindow(0, 0, cx, cy);
}
}

CPropertyPage::OnSize(nType, cx, cy);
}code>


mfg
GeneralRe: Small Prolem with OptionTree Pin
Prakash Nadar27-Dec-04 23:48
Prakash Nadar27-Dec-04 23:48 
GeneralRe: Small Prolem with OptionTree Pin
Fenderman28-Dec-04 0:17
Fenderman28-Dec-04 0:17 
GeneralRe: Block Copying Data Pin
Prakash Nadar27-Dec-04 23:46
Prakash Nadar27-Dec-04 23:46 
GeneralHm... Pin
Dennis Gourjii27-Dec-04 23:47
Dennis Gourjii27-Dec-04 23:47 
QuestionHow To Get Known of disconnection Pin
Rassul Yunussov27-Dec-04 21:42
Rassul Yunussov27-Dec-04 21:42 
GeneralTCPView Pin
Anonymous27-Dec-04 21:39
Anonymous27-Dec-04 21:39 
Questionhow can i get network ip address Pin
vc-programmer-27-Dec-04 20:59
vc-programmer-27-Dec-04 20:59 
AnswerRe: how can i get network ip address Pin
David Crow28-Dec-04 3:27
David Crow28-Dec-04 3:27 
GeneralRe: ReadFile, WriteFile in Console application Pin
Prakash Nadar27-Dec-04 20:08
Prakash Nadar27-Dec-04 20:08 
GeneralMemory leaks and VCRT Pin
Imtiaz Murtaza27-Dec-04 17:55
Imtiaz Murtaza27-Dec-04 17:55 
GeneralRe: Memory leaks and VCRT Pin
virtualkirankumar28-Dec-04 0:19
virtualkirankumar28-Dec-04 0:19 
GeneralRe: Memory leaks and VCRT Pin
Kiran Kumar Singani28-Dec-04 0:21
Kiran Kumar Singani28-Dec-04 0:21 
GeneralRe: Memory leaks and VCRT Pin
vishalmore28-Dec-04 4:15
vishalmore28-Dec-04 4:15 
GeneralRe: Memory leaks and VCRT Pin
Henry miller28-Dec-04 4:20
Henry miller28-Dec-04 4:20 
GeneralHelp! in C++ How to implement 2 classes share one class Pin
stans8027-Dec-04 15:04
stans8027-Dec-04 15:04 
GeneralRe: Help! in C++ How to implement 2 classes share one class Pin
Prakash Nadar27-Dec-04 16:21
Prakash Nadar27-Dec-04 16:21 
GeneralRe: Help! in C++ How to implement 2 classes share one class Pin
stans8027-Dec-04 18:20
stans8027-Dec-04 18:20 

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.