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

C / C++ / MFC

 
GeneralRe: Higher floating point precison in C++ Pin
afalco30-Aug-12 20:59
afalco30-Aug-12 20:59 
GeneralRe: Higher floating point precison in C++ Pin
CPallini31-Aug-12 5:53
mveCPallini31-Aug-12 5:53 
GeneralRe: Higher floating point precison in C++ Pin
afalco2-Sep-12 21:32
afalco2-Sep-12 21:32 
QuestionHelp to find an excesive memory allocation in my application Pin
mklon2230-Aug-12 0:11
mklon2230-Aug-12 0:11 
AnswerRe: Help to find an excesive memory allocation in my application Pin
Alan Balkany30-Aug-12 7:47
Alan Balkany30-Aug-12 7:47 
AnswerRe: Help to find an excesive memory allocation in my application Pin
Rolf Kristensen30-Aug-12 7:55
Rolf Kristensen30-Aug-12 7:55 
AnswerRe: Help to find an excesive memory allocation in my application Pin
jschell30-Aug-12 8:35
jschell30-Aug-12 8:35 
QuestionMFC how to popup menu when i right click leaf node which is under the root node Pin
Member 934498629-Aug-12 23:24
Member 934498629-Aug-12 23:24 
I use treecontrol to build a tree, it is a 3 level tree has one root node ,there are several children nodes which is under root node, and some leaf nodes are under children nodes,but some are not, they are under root nodes. for each level node I have a popup menu, but for the leaf node which is under the root node, it can't tell which menu it should popup.

In the code I set up a level_num to decide which node popup what kind of menu,but leaf node in the children level,it has same level_num of children node,so could anyone can help?
C#
if(iCode)
{
    if(level_num == 4)
        m_Menu.LoadMenu( IDR_DELETE_SUBPRJ) ;
    if(level_num == 3)
        m_Menu.LoadMenu( IDR_ADD_SUBPRJ);
    if(level_num == 2)
        m_Menu.LoadMenu( IDR_ADD_GROUP);
    p_Menu = (CMenu*) m_Menu.GetSubMenu(0);
    if( p_Menu != NULL)
        p_Menu->TrackPopupMenu( TPM_RIGHTBUTTON|TPM_LEFTALIGN, pos.x, pos.y, this);
    p_Menu = NULL;


}

AnswerRe: MFC how to popup menu when i right click leaf node which is under the root node Pin
Richard MacCutchan29-Aug-12 23:29
mveRichard MacCutchan29-Aug-12 23:29 
GeneralRe: MFC how to popup menu when i right click leaf node which is under the root node Pin
Member 934498630-Aug-12 22:12
Member 934498630-Aug-12 22:12 
QuestionHow to avoid message Queue on click event? Pin
Le@rner29-Aug-12 19:34
Le@rner29-Aug-12 19:34 
AnswerRe: How to avoid message Queue on click event? Pin
Jochen Arndt30-Aug-12 0:53
professionalJochen Arndt30-Aug-12 0:53 
GeneralRe: How to avoid message Queue on click event? Pin
Le@rner31-Aug-12 20:35
Le@rner31-Aug-12 20:35 
QuestionEnumFontFamiliesEx only returns one font -- SOLVED Pin
Alan Balkany29-Aug-12 8:49
Alan Balkany29-Aug-12 8:49 
AnswerRe: EnumFontFamiliesEx only returns one font -- SOLVED Pin
Alan Balkany29-Aug-12 8:53
Alan Balkany29-Aug-12 8:53 
Questionfunny with boost::tribool Pin
Robin Imrie29-Aug-12 6:44
professionalRobin Imrie29-Aug-12 6:44 
AnswerRe: funny with boost::tribool (modified) Pin
Chris Meech29-Aug-12 7:14
Chris Meech29-Aug-12 7:14 
GeneralRe: funny with boost::tribool (modified) Pin
Robin Imrie30-Aug-12 2:31
professionalRobin Imrie30-Aug-12 2:31 
GeneralRe: funny with boost::tribool (modified) Pin
Chris Meech30-Aug-12 3:16
Chris Meech30-Aug-12 3:16 
GeneralRe: funny with boost::tribool Pin
CPallini29-Aug-12 11:09
mveCPallini29-Aug-12 11:09 
GeneralRe: funny with boost::tribool Pin
Robin Imrie30-Aug-12 23:28
professionalRobin Imrie30-Aug-12 23:28 
GeneralRe: funny with boost::tribool Pin
Chris Meech31-Aug-12 2:16
Chris Meech31-Aug-12 2:16 
Questionhow to share data between two dlls.? Pin
mbatra3128-Aug-12 1:08
mbatra3128-Aug-12 1:08 
AnswerRe: how to share data between two dlls.? Pin
Maximilien28-Aug-12 3:06
Maximilien28-Aug-12 3:06 
GeneralRe: how to share data between two dlls.? Pin
mbatra3128-Aug-12 19:30
mbatra3128-Aug-12 19:30 

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.