Click here to Skip to main content
15,882,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used MFS_CHECKED in a system menu beside a text item, when I used this MFS_CHECKED there is checkmark box which is in blue color, I want it as transparent. I couldn't find any solution to change this.

What I have tried:

C++
BOOL CWinCCChnDiagDlg::OnInitDialog()
{
	
	CDialogEx::OnInitDialog();
	
	pSystemMenu=GetSystemMenu(FALSE);
	
	menuItem.cbSize = sizeof(MENUITEMINFO);
	menuItem.fMask = MIIM_STATE;
	menuItem.fState = MFS_CHECKED;
	
	pSystemMenu->AppendMenu(MFS_CHECKED, IDM_SYSCOMMAND_CUSTOM, _T("Always on top"));

	
	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
 	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon

	return TRUE;  // return TRUE  unless you set the focus to a control
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900