My question is if I call ::DestroyMenu(hMenu) later on, it will delete all the submenus but will it delete the associated "CMyMenu" objects too or do I have to save both popup1 and popup2 to delete the objects my self
Well I guess you can either choose to believe the documentation, or not. If you don't believe it then you can perform some tests to see if it leaks.
Actually i need to vanishthe 'X'-box from the system menu & keep onlyMinimize-Box in the menu bar.
I'hv used a code stuff under OnInitDialog()---
CMenu* cmenu = this->GetSystemMenu(FALSE);
cmenu->ModifyMenu(SC_CLOSE,MF_BYCOMMAND | MF_GRAYED);
You could modify the code in this article[^] (see the PaintCap.h and PaintCap.cpp files in the file linked from the article) to draw the title-bar yourself. That way you can decide exactly which boxes to draw...
I have created a multilingual application. When I am changing the language, the old language characters are not remove,while new language character is being overwritten.
Well, I suppose this is the true spirit of a MULTIlingual application.
BTW We're really genii, and we might guess your problem and find the solution without even seeing a single line of your code. Unfortunately we cannot fully exploit our superpowers here, to not shock the mean people.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
How can i add text just with Mouse Cursor.Actually i m writing one case on MOUSEMOVE.So i want to display X and y Coordinates with Mouse Cursor.I m getting X and y Coordinates.But how to add with mouse cursor.