Click here to Skip to main content
15,914,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: ClassView Missing Please Help Pin
shivditya7-Nov-05 23:45
shivditya7-Nov-05 23:45 
AnswerRe: ClassView Missing Please Help Pin
Vikash Dubey7-Nov-05 22:26
Vikash Dubey7-Nov-05 22:26 
GeneralRe: ClassView Missing Please Help Pin
shivditya7-Nov-05 23:41
shivditya7-Nov-05 23:41 
AnswerRe: ClassView Missing Please Help Pin
*Dreamz7-Nov-05 22:34
*Dreamz7-Nov-05 22:34 
QuestionWhy I can't CreateDragImage in CTreeCtrl? Pin
white jungle7-Nov-05 21:21
white jungle7-Nov-05 21:21 
AnswerRe: Why I can't CreateDragImage in CTreeCtrl? Pin
Rage8-Nov-05 4:12
professionalRage8-Nov-05 4:12 
GeneralRe: Why I can't CreateDragImage in CTreeCtrl? Pin
white jungle8-Nov-05 15:28
white jungle8-Nov-05 15:28 
AnswerRe: Why I can't CreateDragImage in CTreeCtrl? Pin
Leif Goodwin18-May-10 4:25
Leif Goodwin18-May-10 4:25 
You have to cheat. Create the tree control without an image list. Before calling CreateDragImage, assign an image list to the CTreeCtrl, After the CreateDragImage function returns, assign a NULL image list to the tree control. For example:

m_tree.SetImageList( &m_imageListTree, TVSIL_NORMAL );
m_pDragImage = m_tree.CreateDragImage(m_hDragTreeNode);
m_tree.SetImageList( NULL, TVSIL_NORMAL );

This assumes that you want a tree control WITHOUT images assigned to each item. If you WANT images in the tree control, just call SetImageList when you create the tree control.

You might think that it is possible to assign an image list to the tree control, but for each item say specify -1 as the image index i.e. no image. The problem with this is that it displays the item as if there was a blank image, which is not the same thing.
QuestionWhich control should I use? Pin
Vikash Dubey7-Nov-05 20:39
Vikash Dubey7-Nov-05 20:39 
AnswerRe: Which control should I use? Pin
G Haranadh7-Nov-05 23:23
G Haranadh7-Nov-05 23:23 
GeneralRe: Which control should I use? Pin
Vikash Dubey8-Nov-05 0:04
Vikash Dubey8-Nov-05 0:04 
GeneralRe: Which control should I use? Pin
G Haranadh8-Nov-05 0:25
G Haranadh8-Nov-05 0:25 
AnswerRe: Which control should I use? Pin
ddmcr8-Nov-05 1:49
ddmcr8-Nov-05 1:49 
QuestionHelp! How can I simulate a console in the SDI Document View Pin
jfk_lili7-Nov-05 18:48
jfk_lili7-Nov-05 18:48 
AnswerRe: Help! How can I simulate a console in the SDI Document View Pin
kakan7-Nov-05 19:57
professionalkakan7-Nov-05 19:57 
GeneralRe: Help! How can I simulate a console in the SDI Document View Pin
jfk_lili7-Nov-05 20:56
jfk_lili7-Nov-05 20:56 
GeneralRe: Help! How can I simulate a console in the SDI Document View Pin
kakan7-Nov-05 21:30
professionalkakan7-Nov-05 21:30 
GeneralRe: Help! How can I simulate a console in the SDI Document View Pin
jfk_lili7-Nov-05 23:53
jfk_lili7-Nov-05 23:53 
AnswerRe: Help! How can I simulate a console in the SDI Document View Pin
Calc208-Nov-05 2:07
Calc208-Nov-05 2:07 
Questionproblem in debugging MFC app Pin
QuickDeveloper7-Nov-05 18:37
QuickDeveloper7-Nov-05 18:37 
AnswerRe: problem in debugging MFC app Pin
douglasjordan7-Nov-05 18:44
douglasjordan7-Nov-05 18:44 
AnswerRe: problem in debugging MFC app Pin
kakan7-Nov-05 18:57
professionalkakan7-Nov-05 18:57 
GeneralRe: problem in debugging MFC app Pin
Bob Ciora8-Nov-05 1:19
Bob Ciora8-Nov-05 1:19 
QuestionCapturing Keyboard Input in a Dialog Based Appliaction Pin
pani687-Nov-05 18:13
pani687-Nov-05 18:13 
AnswerRe: Capturing Keyboard Input in a Dialog Based Appliaction Pin
douglasjordan7-Nov-05 18:37
douglasjordan7-Nov-05 18:37 

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.