Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMutli_Threading ( WaitForMultipleObject) Pin
.::RockNix::.23-Jan-01 23:40
.::RockNix::.23-Jan-01 23:40 
GeneralModern shortcuts Pin
23-Jan-01 23:31
suss23-Jan-01 23:31 
QuestionWhat is const = 0 Pin
23-Jan-01 23:00
suss23-Jan-01 23:00 
AnswerRe: What is const = 0 Pin
Matt.W.24-Jan-01 0:12
Matt.W.24-Jan-01 0:12 
GeneralProblem with a tree view !!! Pin
Walid MEDDEB23-Jan-01 22:15
Walid MEDDEB23-Jan-01 22:15 
GeneralRe: Problem with a tree view !!! Pin
David Fedolfi25-Jan-01 6:05
David Fedolfi25-Jan-01 6:05 
GeneralRe: Problem with a tree view !!! Pin
25-Jan-01 21:58
suss25-Jan-01 21:58 
GeneralRe: Problem with a tree view !!! Pin
Walid MEDDEB26-Jan-01 5:44
Walid MEDDEB26-Jan-01 5:44 
it's not excactly what i mean,
my app contains a menu with two item.
the 1st item (MENU_ITEM_1), opens a tree, the second item (MENU_ITEM_2) opens a dialog(1),
when the tree is opened by (MENU_ITEM_1), i made a selection on a tree-item that pops up a dialog(2),
so i select from menu, MENU_ITEM_2 that pops up dialog(1),
my prblm is that when i reselect from menu MENU_ITEM_1, the tree appears but
the appropriate dialog no ( the MENU_ITEM_2 (dialog1) remains ) even if i send a "brute"
TVN_SELCHANGED to the same ITEM.....to enforce the rigth dialog(2)...

this is portion of my code: ( in fact its not a menu but buttons that pops up dialog )

portion of code that catch TVN_SELCHANGED to display a dialog for each item:
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code)
{
case TVN_SELCHANGED:
hItem = TreeView_GetSelection(hTree);
tvi.mask = TVIF_PARAM|TVIF_TEXT;
tvi.hItem = hItem;
TreeView_GetItem(hTree,&tvi);

if ( tvi.lParam == 1 )
{
if ( hSkills == NULL )
hSkills = CreateDialog(g_hInstance,MAKEINTRESOURCE(competences_cles),hWnd,(DLGPROC)Skills_Proc);
else SetFocus(hSkills);
}
...........


portion of code that catch the buttons selection:
case WM_COMMAND:
switch(LOWORD(wParam))
{
// the famous MENU_ITEM_2(dialog1)
if ( HWND(lParam) == (HWND)hJobsButton )
{
ShowWindow(hTree,SW_HIDE);
if ( hJobs == NULL )
hJobs = CreateDialog(g_hInstance,MAKEINTRESOURCE(emplois),hWnd,(DLGPROC)Jobs_Proc);
else SetFocus(hJobs);
}
// ***** MY PROBLEM MENU_ITEM_1(dialog2) *********
// *****************************************
if ( HWND(lParam) == (HWND)hMyResumeButton )
{
if ( hTree == NULL )
{
Create_Default_Tree(hWnd);
SetFocus(hTree);
}
else
{
ShowWindow(hTree,SW_SHOW);
SetFocus(hTree);
//TreeView_Select(hTree,hSkillsTree,TVGN_CARET);
//TreeView_Select(hTree,hItem,TVGN_CARET);
//SendMessage(hTree,TVM_SELECTITEM,TVGN_CARET,(LPARAM)hItem);
}
}

so can u help me please , i can't resolve it since a lot of time... :<
Generalquestio about pointer Pin
Ahmad23-Jan-01 22:00
Ahmad23-Jan-01 22:00 
GeneralRe: questio about pointer Pin
Walter Gildersleeve24-Jan-01 0:55
Walter Gildersleeve24-Jan-01 0:55 
GeneralCompiler - Error Pin
.::RockNix::.23-Jan-01 21:56
.::RockNix::.23-Jan-01 21:56 
GeneralRe: Compiler - Error Pin
Michael Dunn24-Jan-01 6:50
sitebuilderMichael Dunn24-Jan-01 6:50 
GeneralRe: Compiler - Error Pin
AlexMarbus24-Jan-01 7:06
AlexMarbus24-Jan-01 7:06 
QuestionDHTML article?? Pin
Amit Dey23-Jan-01 20:51
Amit Dey23-Jan-01 20:51 
Generalfree e-books about VISUAL C++ Pin
23-Jan-01 20:37
suss23-Jan-01 20:37 
GeneralRe: free e-books about VISUAL C++ Pin
Ahmad23-Jan-01 20:40
Ahmad23-Jan-01 20:40 
Generalquestio about winmain Pin
Ahmad23-Jan-01 20:34
Ahmad23-Jan-01 20:34 
GeneralRe: questio about winmain Pin
Ghazi H. Wadi24-Jan-01 7:35
Ghazi H. Wadi24-Jan-01 7:35 
GeneralNeed more help on the file listing Pin
23-Jan-01 13:28
suss23-Jan-01 13:28 
GeneralRe: Need more help on the file listing Pin
Michael Dunn23-Jan-01 16:42
sitebuilderMichael Dunn23-Jan-01 16:42 
GeneralRe: Need more help on the file listing Pin
24-Jan-01 7:12
suss24-Jan-01 7:12 
GeneralRe: Need more help on the file listing Pin
Michael Dunn24-Jan-01 16:00
sitebuilderMichael Dunn24-Jan-01 16:00 
GeneralEin Dialog drei Listboxes Pin
23-Jan-01 10:20
suss23-Jan-01 10:20 
GeneralRe: Ein Dialog drei Listboxes Pin
Christian Graus23-Jan-01 10:39
protectorChristian Graus23-Jan-01 10:39 
GeneralRe: Ein Dialog drei Listboxes Pin
Matt.W.23-Jan-01 19:40
Matt.W.23-Jan-01 19:40 

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.