Click here to Skip to main content
15,916,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem when Copying Text content to Clipboard Pin
SivaramanDhamodharan19-Dec-04 19:33
SivaramanDhamodharan19-Dec-04 19:33 
GeneralRe: Problem when Copying Text content to Clipboard Pin
Anonymous19-Dec-04 19:39
Anonymous19-Dec-04 19:39 
GeneralRe: Problem when Copying Text content to Clipboard Pin
David Crow20-Dec-04 8:18
David Crow20-Dec-04 8:18 
GeneralRe: Problem when Copying Text content to Clipboard Pin
SivaramanDhamodharan20-Dec-04 19:44
SivaramanDhamodharan20-Dec-04 19:44 
Generalcompile hangs Pin
Anonymous19-Dec-04 19:28
Anonymous19-Dec-04 19:28 
QuestionHow to associate one string to Flex's input buffer? Pin
chenbuaa19-Dec-04 19:15
chenbuaa19-Dec-04 19:15 
Questionhow to show the menu when the app is minisized Pin
lowiq19-Dec-04 19:01
lowiq19-Dec-04 19:01 
AnswerRe: how to show the menu when the app is minisized Pin
ThatsAlok19-Dec-04 20:01
ThatsAlok19-Dec-04 20:01 
For That you have make changes System Menu
here are some codes

#1 Get system Menu
// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString("about box");
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}


for handling Menu Message you have to overide
WM_SYSCOMAND message. i.e. this way

void CSockDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
		CDialog::OnSysCommand(nID, lParam);
	}
}


this code is wizard generated but help very much

-----------------------------
"I Think this Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk

GeneralRe: how to show the menu when the app is minisized Pin
lowiq19-Dec-04 22:03
lowiq19-Dec-04 22:03 
GeneralRe: how to show the menu when the app is minisized Pin
ThatsAlok20-Dec-04 0:51
ThatsAlok20-Dec-04 0:51 
GeneralRe: how to show the menu when the app is minisized Pin
lowiq20-Dec-04 15:46
lowiq20-Dec-04 15:46 
GeneralInherite from a extended Dialog Class Pin
ty cheng19-Dec-04 18:24
ty cheng19-Dec-04 18:24 
GeneralCapturing the keys pressed on the keyboard Pin
ledallam19-Dec-04 16:52
ledallam19-Dec-04 16:52 
GeneralRe: Capturing the keys pressed on the keyboard Pin
Member 58088119-Dec-04 17:10
Member 58088119-Dec-04 17:10 
Generalxvoice.dll Pin
tiem19-Dec-04 15:21
tiem19-Dec-04 15:21 
GeneralRe: xvoice.dll Pin
Joeinorange223-Mar-10 10:35
Joeinorange223-Mar-10 10:35 
Generalxvoice.dll Pin
tiem19-Dec-04 15:21
tiem19-Dec-04 15:21 
GeneralManaged DLL Pin
BeerFizz19-Dec-04 15:11
BeerFizz19-Dec-04 15:11 
QuestionType of Derived Class a problem for STL lists? Pin
Jordan C. Atlas19-Dec-04 13:39
Jordan C. Atlas19-Dec-04 13:39 
AnswerRe: Type of Derived Class a problem for STL lists? Pin
demf19-Dec-04 15:04
demf19-Dec-04 15:04 
AnswerRe: Type of Derived Class a problem for STL lists? Pin
19-Dec-04 16:53
suss19-Dec-04 16:53 
GeneralRe: Type of Derived Class a problem for STL lists? Pin
Jordan C. Atlas22-Dec-04 8:34
Jordan C. Atlas22-Dec-04 8:34 
Generalpassing variables Pin
Timothy Grabrian19-Dec-04 12:20
professionalTimothy Grabrian19-Dec-04 12:20 
GeneralRe: passing variables Pin
PJ Arends19-Dec-04 15:33
professionalPJ Arends19-Dec-04 15:33 
GeneralRe: passing variables Pin
Timothy Grabrian19-Dec-04 15:59
professionalTimothy Grabrian19-Dec-04 15:59 

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.