Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Chris Losinger28-Jul-02 18:56
professionalChris Losinger28-Jul-02 18:56 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Abin28-Jul-02 19:00
Abin28-Jul-02 19:00 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Renjith Ramachandran28-Jul-02 20:29
Renjith Ramachandran28-Jul-02 20:29 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
John Clump28-Jul-02 18:46
John Clump28-Jul-02 18:46 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Roman Nurik28-Jul-02 19:42
Roman Nurik28-Jul-02 19:42 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Alexandru Savescu29-Jul-02 3:41
Alexandru Savescu29-Jul-02 3:41 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Pizzor200027-Oct-03 5:48
Pizzor200027-Oct-03 5:48 
GeneralSCBDemo3, a dockable window, help!!!!!!! Pin
includeh1028-Jul-02 18:06
includeh1028-Jul-02 18:06 
i downloaded SCBDemo3, a sample or library of dockable window.

in my program, i modified it, but i meet unknown trouble with it. please help ....

first, create a sub-class of the dockable window (called XDock).
then add a CView's sub-class (called XView) as its content (or RUNTIME CLASS, or child), then add 3 CTreeCtrl's sub-class (called XTree) as children of XView.

then add some tree items on WM_CREATE message of XTree(OnCreate) to each tree.

------------ so far so good. but problem comes now:
i can not add a tree item out of XDock !

code is simplified as:

class XView:public CView
{.........
CTreeCtrl tree0,tree1,tree2;
.........
};

XDock dock;
dock.Create(this,RUNTIME_CLASS(XView),....
//tree0,1,2 are created inside XView
//add tree items inside tree0, OK

problem is add tree item out of dock as following:

XView*pv=(XView*)dock.GetWindow(GW_CHILD);
pv->tree0.AddTreeItem("some name");//a. retuen 0.

BOOL XTree::AddTreeItem(CString cs)
{
HTREEITEM hNew=InsertItem(........);//b. hNew is 0
......
};

note: as i said, if inside XTree, it is OK
BOOL XTree::OnCreate(...)
{..............
AddTreeItem("it is OK here");
}

i checked both a. and b. are called, why calling inside XTree is OK, outside is failed?

i'm waiting for u and prepare more hints as required.

thx




















includeh10
GeneralText file manipulation Pin
ftjjk28-Jul-02 17:52
ftjjk28-Jul-02 17:52 
GeneralRe: Text file manipulation Pin
Christian Graus28-Jul-02 19:34
protectorChristian Graus28-Jul-02 19:34 
GeneralWinNT vs. Win9x (compatability) Pin
Zingam28-Jul-02 17:46
sussZingam28-Jul-02 17:46 
GeneralRe: WinNT vs. Win9x (compatability) Pin
Christian Graus28-Jul-02 19:39
protectorChristian Graus28-Jul-02 19:39 
GeneralRe: WinNT vs. Win9x (compatability) Pin
Mike Nordell28-Jul-02 22:18
Mike Nordell28-Jul-02 22:18 
QuestionIs there a similar functio to SetWindowActive to do this ?? Pin
Still learning how to code28-Jul-02 11:07
Still learning how to code28-Jul-02 11:07 
AnswerRe: Is there a similar functio to SetWindowActive to do this ?? Pin
l a u r e n28-Jul-02 11:25
l a u r e n28-Jul-02 11:25 
AnswerRe: Is there a similar functio to SetWindowActive to do this ?? Pin
Michael Dunn28-Jul-02 11:53
sitebuilderMichael Dunn28-Jul-02 11:53 
GeneralRe: Is there a similar functio to SetWindowActive to do this ?? Pin
l a u r e n28-Jul-02 11:56
l a u r e n28-Jul-02 11:56 
GeneralRe: Is there a similar functio to SetWindowActive to do this ?? Pin
Nish Nishant28-Jul-02 15:37
sitebuilderNish Nishant28-Jul-02 15:37 
AnswerRe: Is there a similar functio to SetWindowActive to do this ?? Pin
Peter Occil28-Jul-02 15:18
Peter Occil28-Jul-02 15:18 
GeneralRe: Is there a similar functio to SetWindowActive to do this ?? Pin
Still learning how to code29-Jul-02 8:20
Still learning how to code29-Jul-02 8:20 
QuestionHow do I use GridCtrl? Pin
Jonathan Hill28-Jul-02 10:13
Jonathan Hill28-Jul-02 10:13 
AnswerRe: How do I use GridCtrl? Pin
Ancient Dragon28-Jul-02 11:02
Ancient Dragon28-Jul-02 11:02 
GeneralRe: How do I use GridCtrl? Pin
Jonathan Hill29-Jul-02 6:41
Jonathan Hill29-Jul-02 6:41 
AnswerRe: How do I use GridCtrl? Pin
includeh1028-Jul-02 18:13
includeh1028-Jul-02 18:13 
GeneralRe: How do I use GridCtrl? Pin
Michael P Butler28-Jul-02 23:22
Michael P Butler28-Jul-02 23: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.