Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to operate user accounts on an active directory server remotely? Pin
denly11-Mar-04 3:47
denly11-Mar-04 3:47 
AnswerRe: how to operate user accounts on an active directory server remotely? Pin
Alexander M.,11-Mar-04 6:56
Alexander M.,11-Mar-04 6:56 
GeneralRe: how to operate user accounts on an active directory server remotely? Pin
denly11-Mar-04 17:02
denly11-Mar-04 17:02 
GeneralManaging views. Pin
Demian Panello11-Mar-04 3:19
Demian Panello11-Mar-04 3:19 
GeneralRe: Managing views. Pin
Tomasz Sowinski11-Mar-04 3:34
Tomasz Sowinski11-Mar-04 3:34 
GeneralSimple Chat Client with CSocket Class Pin
GHinkson11-Mar-04 3:02
GHinkson11-Mar-04 3:02 
GeneralRe: Simple Chat Client with CSocket Class Pin
toxcct11-Mar-04 3:07
toxcct11-Mar-04 3:07 
GeneralRe: Simple Chat Client with CSocket Class Pin
GHinkson11-Mar-04 3:15
GHinkson11-Mar-04 3:15 
GeneralRe: Simple Chat Client with CSocket Class Pin
toxcct11-Mar-04 3:30
toxcct11-Mar-04 3:30 
GeneralRe: Simple Chat Client with CSocket Class Pin
GHinkson11-Mar-04 3:51
GHinkson11-Mar-04 3:51 
GeneralRe: Simple Chat Client with CSocket Class Pin
Anonymous11-Mar-04 23:42
Anonymous11-Mar-04 23:42 
GeneralRe: Simple Chat Client with CSocket Class Pin
GHinkson11-Mar-04 23:46
GHinkson11-Mar-04 23:46 
GeneralEvents and Threads Pin
hph11-Mar-04 2:25
hph11-Mar-04 2:25 
GeneralRe: Events and Threads Pin
Steve S11-Mar-04 2:54
Steve S11-Mar-04 2:54 
GeneralRe: Events and Threads Pin
hph11-Mar-04 3:18
hph11-Mar-04 3:18 
GeneralSubclassing / embedding Active X's Pin
rw10411-Mar-04 2:13
rw10411-Mar-04 2:13 
GeneralInveting a BitMap Pin
Pazzuzu11-Mar-04 1:35
Pazzuzu11-Mar-04 1:35 
GeneralRe: Inveting a BitMap Pin
Pazzuzu11-Mar-04 2:02
Pazzuzu11-Mar-04 2:02 
QuestionHow to check that if a file has been already opened Pin
Deepak Samuel11-Mar-04 1:35
Deepak Samuel11-Mar-04 1:35 
Questionhow to call a menu by clicking a button from a dialog? Pin
yeefarn11-Mar-04 0:57
yeefarn11-Mar-04 0:57 
AnswerRe: how to call a menu by clicking a button from a dialog? Pin
Tomasz Sowinski11-Mar-04 3:01
Tomasz Sowinski11-Mar-04 3:01 
AnswerRe: how to call a menu by clicking a button from a dialog? Pin
Roger Allen11-Mar-04 4:58
Roger Allen11-Mar-04 4:58 
If you want the menu options to always be available. Do something like this in your OnInitDialog()

CMenu menu;

menu.LoadMenu(ID_OF_MENU);
SetMenu(menu.m_hMenu);
menu.Detach();// now owned by dialog
DrawMenuBar();

The dialog will destroy the menu automatically when itselef is destroyed

You then just need to write ON_COMMAND() handlers for each item. If you need to enable/disable items, handle the WM_INITMENUPOPUP message and process the individual items there.


Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
GeneralParsing CString Pin
Caoimh11-Mar-04 0:46
Caoimh11-Mar-04 0:46 
GeneralRe: Parsing CString Pin
Robert A. T. Káldy11-Mar-04 1:00
Robert A. T. Káldy11-Mar-04 1:00 
GeneralRe: Parsing CString Pin
David Crow11-Mar-04 2:38
David Crow11-Mar-04 2:38 

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.