Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionKeep a DLL generated dialog on top Pin
fusion2344X22-May-07 22:57
fusion2344X22-May-07 22:57 
AnswerRe: Keep a DLL generated dialog on top Pin
Naveen23-May-07 1:41
Naveen23-May-07 1:41 
GeneralRe: Keep a DLL generated dialog on top Pin
fusion2344X23-May-07 5:18
fusion2344X23-May-07 5:18 
GeneralRe: Keep a DLL generated dialog on top [modified] Pin
Naveen23-May-07 14:10
Naveen23-May-07 14:10 
QuestionRe: Keep a DLL generated dialog on top Pin
David Crow23-May-07 4:04
David Crow23-May-07 4:04 
QuestionFolder Pin
josip cagalj22-May-07 21:34
josip cagalj22-May-07 21:34 
AnswerRe: Folder Pin
Hamid_RT22-May-07 21:58
Hamid_RT22-May-07 21:58 
Questionmenu change Pin
prithaa22-May-07 21:25
prithaa22-May-07 21:25 
Hello,

I have changed icon for my child window by defining a window class in a non Doc-View architecture
lpszClass = AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW,
LoadCursor(NULL, IDC_ARROW),
HBRUSH) (COLOR_WINDOW+1),
LoadIcon(AfxGetInstanceHandle(),
MAKEINTRESOURCE(IDI_ICON1)));

But I am not able to change the menu for my child window.
I tried by doing the following in ChildFrame's
PreCreateWindow(CREATESTRUCT& cs)
{
cs.lpszName = "my Window";
cs.hInstance = AfxGetInstanceHandle();
CMenu M;
M.CreateMenu();
M.AppendMenu(MF_CHECKED ,MF_OWNERDRAW,"sasas");
M.AppendMenu(MF_CHECKED ,MF_OWNERDRAW,"sassaaaa");
cs.hMenu = M;
}

Where I went wrong ?
Or if the above code is not clear .then can you tell me how should I change menu for my child windows

Prithaa





AnswerRe: menu change Pin
Nelek22-May-07 23:28
protectorNelek22-May-07 23:28 
AnswerRe: menu change Pin
Anurag Gandhi23-May-07 0:06
professionalAnurag Gandhi23-May-07 0:06 
Question__loctotime_t function in Win32 Pin
bouli22-May-07 21:17
bouli22-May-07 21:17 
AnswerRe: __loctotime_t function in Win32 Pin
Hamid_RT22-May-07 21:34
Hamid_RT22-May-07 21:34 
AnswerRe: __loctotime_t function in Win32 Pin
_AnsHUMAN_ 22-May-07 22:43
_AnsHUMAN_ 22-May-07 22:43 
GeneralRe: __loctotime_t function in Win32 Pin
bouli22-May-07 22:46
bouli22-May-07 22:46 
QuestionRe: __loctotime_t function in Win32 Pin
David Crow23-May-07 4:11
David Crow23-May-07 4:11 
AnswerRe: __loctotime_t function in Win32 Pin
bouli23-May-07 4:13
bouli23-May-07 4:13 
QuestionSocket Connection problem in Windows XP System from VC++ Pin
ledallam22-May-07 21:14
ledallam22-May-07 21:14 
AnswerRe: Socket Connection problem in Windows XP System from VC++ Pin
KarstenK22-May-07 21:19
mveKarstenK22-May-07 21:19 
GeneralRe: Socket Connection problem in Windows XP System from VC++ Pin
ledallam22-May-07 21:31
ledallam22-May-07 21:31 
AnswerRe: Socket Connection problem in Windows XP System from VC++ [modified] Pin
Mark Salsbery23-May-07 6:22
Mark Salsbery23-May-07 6:22 
QuestionXML Parsing Pin
g_sandipan22-May-07 21:03
g_sandipan22-May-07 21:03 
AnswerRe: XML Parsing (another point of view) Pin
Joan M23-May-07 0:13
professionalJoan M23-May-07 0:13 
GeneralRe: XML Parsing (another point of view) Pin
g_sandipan23-May-07 1:43
g_sandipan23-May-07 1:43 
AnswerRe: XML Parsing Pin
James R. Twine23-May-07 3:51
James R. Twine23-May-07 3:51 
QuestionCOM+ Dll Registration Failed!! Pin
Rane22-May-07 20:32
Rane22-May-07 20:32 

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.