Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to upload a file on a server at a perticular location? Pin
AnayKulkarni12-Sep-07 0:14
AnayKulkarni12-Sep-07 0:14 
QuestionRe: how to upload a file on a server at a perticular location? Pin
David Crow12-Sep-07 3:40
David Crow12-Sep-07 3:40 
QuestionHow to fixed such error?C2220 Pin
kcynic11-Sep-07 17:38
kcynic11-Sep-07 17:38 
AnswerRe: How to fixed such error?C2220 Pin
Stephen Hewitt11-Sep-07 17:46
Stephen Hewitt11-Sep-07 17:46 
AnswerRe: How to fixed such error?C2220 Pin
David Crow12-Sep-07 3:42
David Crow12-Sep-07 3:42 
QuestionGet and Set methods Pin
User 58385211-Sep-07 16:16
User 58385211-Sep-07 16:16 
AnswerRe: Get and Set methods Pin
George L. Jackson11-Sep-07 18:19
George L. Jackson11-Sep-07 18:19 
AnswerRe: Get and Set methods Pin
Nelek11-Sep-07 22:55
protectorNelek11-Sep-07 22:55 
AnswerRe: Get and Set methods Pin
Mark Salsbery12-Sep-07 8:30
Mark Salsbery12-Sep-07 8:30 
QuestionEnumProcesses Pin
dellthinker11-Sep-07 15:54
dellthinker11-Sep-07 15:54 
AnswerRe: EnumProcesses Pin
Hamid_RT11-Sep-07 19:39
Hamid_RT11-Sep-07 19:39 
AnswerRe: EnumProcesses Pin
Randor 11-Sep-07 20:39
professional Randor 11-Sep-07 20:39 
AnswerRe: EnumProcesses Pin
Randor 11-Sep-07 20:53
professional Randor 11-Sep-07 20:53 
QuestionMS OFFICE File Open Save Dialog Hooking Pin
JuggernautMsn11-Sep-07 14:00
JuggernautMsn11-Sep-07 14:00 
AnswerRe: MS OFFICE File Open Save Dialog Hooking Pin
Mark Salsbery11-Sep-07 15:14
Mark Salsbery11-Sep-07 15:14 
GeneralRe: MS OFFICE File Open Save Dialog Hooking Pin
JuggernautMsn11-Sep-07 15:19
JuggernautMsn11-Sep-07 15:19 
QuestionWhat's the diff between DLLs ? Pin
USAFHokie8011-Sep-07 10:16
USAFHokie8011-Sep-07 10:16 
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

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.