Does anyone know if the Visual Studio C++ compiler optimizes to eliminate calls to functions with empty definitions (nothing between the curly braces denoting the function's body)? I am particularly interested in the 2010 and 2012 versions of the Visual Studio compiler. Thank you.
S
severin0
@severin0
Posts
-
Visual Studio C++ compiler empty functions -
How to disable CDockablePane context menu?I simply overrode CDockablePane::OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/) to have the function do nothing and just return. Now when I right-click, the only context menu I see is the one from my CDialog window that I have embedded into my CDockablePane window. Before I did this, the CDockablePane context menu would pop up immediately after I selected an item from my CDialog window's context menu.