Creating a menu in window without menu

I'm trying to put a menu in a window without menu.
I made a dll with the menu resource and used the following code to enable the menu:

hMenu = LoadMenu(hModule, MAKEINTRESOURCE(IDR_MENU)); // hModule = mydll
SetMenu(t_hWnd, hMenu);

The menu is displayed, but the menu is disabled, but when I put the feature manually in .exe and load the menu for my dll everything is well, someone has experienced this or know how to solve?
I want make menu without modification in .exe original
Last edited on
Topic archived. No new replies allowed.