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

C / C++ / MFC

 
GeneralRe: How to store a put a template class into a CList object? Pin
leonwoo31-Jan-01 3:33
leonwoo31-Jan-01 3:33 
GeneralRe: How to store a put a template class into a CList object? Pin
Michael Dunn31-Jan-01 4:31
sitebuilderMichael Dunn31-Jan-01 4:31 
GeneralWindows NT Service vs. ATL Service EXE Pin
Nikhil29-Jan-01 23:49
Nikhil29-Jan-01 23:49 
GeneralCompiler Error Pin
Amit Dey29-Jan-01 23:35
Amit Dey29-Jan-01 23:35 
GeneralString across DLL's Pin
Amit Dey29-Jan-01 23:29
Amit Dey29-Jan-01 23:29 
GeneralRe: String across DLL's Pin
Chris Losinger30-Jan-01 4:00
professionalChris Losinger30-Jan-01 4:00 
GeneralLoad video from an IStream Pin
29-Jan-01 22:07
suss29-Jan-01 22:07 
GeneralProblem with a tree view !!! Pin
Walid MEDDEB29-Jan-01 21:59
Walid MEDDEB29-Jan-01 21:59 
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... :<
GeneralActiveX Param Tag Values Pin
29-Jan-01 11:17
suss29-Jan-01 11:17 
GeneralA compiler error Pin
winyu29-Jan-01 7:37
winyu29-Jan-01 7:37 
GeneralRe: A compiler error Pin
Michael Dunn29-Jan-01 9:02
sitebuilderMichael Dunn29-Jan-01 9:02 
GeneralUrgent: Pop up menus and SFTTree Pin
Ole Chr. Birkeland29-Jan-01 4:16
Ole Chr. Birkeland29-Jan-01 4:16 
GeneralRequest: Samplecode QuickTime Pin
AlexMarbus29-Jan-01 3:45
AlexMarbus29-Jan-01 3:45 
GeneralLisView Pin
29-Jan-01 3:20
suss29-Jan-01 3:20 
QuestionHow to change the caption of the "open" button? Pin
leonwoo29-Jan-01 2:56
leonwoo29-Jan-01 2:56 
AnswerRe: How to change the caption of the Pin
Christian Graus29-Jan-01 11:28
protectorChristian Graus29-Jan-01 11:28 
GeneralRe: How to change the caption of the Pin
29-Jan-01 11:54
suss29-Jan-01 11:54 
QuestionDo VB ActiveX DLLs have to be so hard to use? Pin
Brendan Tregear28-Jan-01 18:50
Brendan Tregear28-Jan-01 18:50 
AnswerRe: Do VB ActiveX DLLs have to be so hard to use? Pin
29-Jan-01 1:14
suss29-Jan-01 1:14 
Questionblit a bmp as dlg background? Pin
28-Jan-01 11:57
suss28-Jan-01 11:57 
AnswerRe: blit a bmp as dlg background? Pin
Christian Graus28-Jan-01 12:20
protectorChristian Graus28-Jan-01 12:20 
QuestionShellExecute??? Pin
28-Jan-01 10:45
suss28-Jan-01 10:45 
AnswerRe: ShellExecute??? Pin
Christian Graus28-Jan-01 10:54
protectorChristian Graus28-Jan-01 10:54 
AnswerRe: ShellExecute??? Pin
29-Jan-01 3:38
suss29-Jan-01 3:38 
Generalip address Pin
loki rasputin28-Jan-01 6:45
loki rasputin28-Jan-01 6:45 

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.