Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What's the diff between DLLs ? Pin
Chris Losinger11-Sep-07 10:38
professionalChris Losinger11-Sep-07 10:38 
GeneralRe: What's the diff between DLLs ? Pin
USAFHokie8011-Sep-07 10:59
USAFHokie8011-Sep-07 10:59 
GeneralRe: What's the diff between DLLs ? Pin
Chris Losinger11-Sep-07 11:17
professionalChris Losinger11-Sep-07 11:17 
GeneralRe: What's the diff between DLLs ? Pin
USAFHokie8011-Sep-07 11:29
USAFHokie8011-Sep-07 11:29 
GeneralRe: What's the diff between DLLs ? Pin
Mark Salsbery11-Sep-07 11:50
Mark Salsbery11-Sep-07 11:50 
GeneralRe: What's the diff between DLLs ? Pin
led mike11-Sep-07 11:49
led mike11-Sep-07 11:49 
QuestionAdd drop shadow to a child dialog Pin
dSolariuM11-Sep-07 6:09
dSolariuM11-Sep-07 6:09 
AnswerRe: Add drop shadow to a child dialog Pin
Stephen Hewitt11-Sep-07 14:30
Stephen Hewitt11-Sep-07 14:30 
I will assume you're using MFC:
BOOL CShadowDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to 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(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// 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
	
	// TODO: Add extra initialization here
	::SetClassLong(
		GetSafeHwnd(),
		GCL_STYLE,
		::GetClassLong(GetSafeHwnd(), GCL_STYLE) | CS_DROPSHADOW/*0x00020000*/
		);
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}


Note that CS_DROPSHADOW requires a Windows version >= XP.
Note that after this code is run ALL dialogs will have shadows!


Steve

QuestionRe: Add drop shadow to a child dialog Pin
nitin311-Sep-07 21:10
nitin311-Sep-07 21:10 
AnswerRe: Add drop shadow to a child dialog Pin
Stephen Hewitt11-Sep-07 21:18
Stephen Hewitt11-Sep-07 21:18 
QuestionRe: Add drop shadow to a child dialog Pin
balaji16719-Feb-14 19:26
balaji16719-Feb-14 19:26 
QuestionHow to change the screen orientation (mirror effect)? Pin
iasouza11-Sep-07 4:18
iasouza11-Sep-07 4:18 
AnswerRe: How to change the screen orientation (mirror effect)? Pin
Waldermort11-Sep-07 21:39
Waldermort11-Sep-07 21:39 
Questiondebugging a dll on command line Pin
Orkun GEDiK11-Sep-07 4:10
Orkun GEDiK11-Sep-07 4:10 
AnswerRe: debugging a dll on command line Pin
Cedric Moonen11-Sep-07 5:00
Cedric Moonen11-Sep-07 5:00 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK11-Sep-07 5:40
Orkun GEDiK11-Sep-07 5:40 
AnswerRe: debugging a dll on command line Pin
aks.11-Sep-07 5:56
aks.11-Sep-07 5:56 
GeneralRe: debugging a dll on command line Pin
carrivick11-Sep-07 9:52
carrivick11-Sep-07 9:52 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK11-Sep-07 20:18
Orkun GEDiK11-Sep-07 20:18 
GeneralRe: debugging a dll on command line Pin
carrivick11-Sep-07 22:26
carrivick11-Sep-07 22:26 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK12-Sep-07 1:16
Orkun GEDiK12-Sep-07 1:16 
GeneralRe: debugging a dll on command line Pin
carrivick12-Sep-07 5:46
carrivick12-Sep-07 5:46 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK11-Sep-07 20:14
Orkun GEDiK11-Sep-07 20:14 
QuestionPlotting the wav file Pin
Maynka11-Sep-07 3:51
Maynka11-Sep-07 3:51 
AnswerRe: Plotting the wav file Pin
jhwurmbach11-Sep-07 4:58
jhwurmbach11-Sep-07 4:58 

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.