Click here to Skip to main content
15,919,613 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: how to Registering namespace handlers for HTTP and HTTPS protocols within the Internet Explorer process ? Pin
Stephen Hewitt24-Jul-08 20:44
Stephen Hewitt24-Jul-08 20:44 
Questionhow to capture go event of internet explorer in vc++6 Pin
skumar120920-Jul-08 21:40
skumar120920-Jul-08 21:40 
QuestionCompilatio error : cannot convert from char to LPWSTR Pin
V K 220-Jul-08 19:16
V K 220-Jul-08 19:16 
AnswerRe: Compilatio error : cannot convert from char to LPWSTR Pin
Stuart Dootson20-Jul-08 21:47
professionalStuart Dootson20-Jul-08 21:47 
QuestionPRJ0019 error when performing a registration Pin
chatko17-Jul-08 3:57
chatko17-Jul-08 3:57 
QuestionHelp me Pin
Amit Battan Ror17-Jul-08 3:47
Amit Battan Ror17-Jul-08 3:47 
QuestionInitialization for OE/ Windows Mail Addin Pin
dolly16-Jul-08 0:14
dolly16-Jul-08 0:14 
Questiontab dialog question Pin
monsieur_jj14-Jul-08 21:48
monsieur_jj14-Jul-08 21:48 
Hi all,

I made a dialog a preference page of some sort that transacts with the system registry. Then after i finished it i was instructed to make it a tab and have another tab. I tried that by doing this:

CPropertySheet sheet( _T("Preference"), 1 );
CPropertyPage<IDD_PREFDLG> pgPreference;
sheet.AddPage(pgPreference);
sheet.m_psh.dwFlags |= PSH_NOAPPLYNOW | PSH_NOCONTEXTHELP;
sheet.DoModal ( *this );


Now it cannot initiate and load the functions its just the dialog thats loading and my buttons and the contents of my combobox doesnt work. What do i need to do?

This is the whole initdialog:

LRESULT CPrefDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
	// center the dialog on the screen
	CenterWindow();
	// set icons
	HICON hIcon = (HICON)::LoadImage(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDD_PREFDLG), 
		IMAGE_ICON, ::GetSystemMetrics(SM_CXICON), ::GetSystemMetrics(SM_CYICON), LR_DEFAULTCOLOR);
	SetIcon(hIcon, TRUE);
	HICON hIconSmall = (HICON)::LoadImage(_Module.GetResourceInstance(), MAKEINTRESOURCE(IDD_PREFDLG), 
		IMAGE_ICON, ::GetSystemMetrics(SM_CXSMICON), ::GetSystemMetrics(SM_CYSMICON), LR_DEFAULTCOLOR);
	SetIcon(hIconSmall, FALSE);

	DWORD dwDisp; 

	TCHAR szKey[256];
	szKey[0] = _T('\0');							

	_tcscpy(szKey, ServiceRegEntry);
	_tcscat(szKey, UPDATEMGR);
	_tcscat(szKey, ServiceParam);

	if (RegCreateKeyEx(HKEY_LOCAL_MACHINE, szKey, 
				  0, 0, REG_OPTION_NON_VOLATILE,
				  KEY_ALL_ACCESS, NULL, &Regentry, &dwDisp)) 
		   {
			  printf("Could not create the registry key."); 
			  return 0;
		   }

		BufferSize = TOTALBYTES;
		PPERF_DATA_BLOCK PerfData = (PPERF_DATA_BLOCK) malloc( BufferSize );

		/*CPropertySheet sheet( _T("Preference"), 1 );
		CPropertyPage<IDD_PREFDLG> pgPreference;
		sheet.AddPage(pgPreference);
		sheet.m_psh.dwFlags |= PSH_NOAPPLYNOW | PSH_NOCONTEXTHELP;
		sheet.DoModal ( *this );*/

		AttachItems();
		QueryAutoCheck();
		QueryAutoDownload();
		QueryDownloadDay();
		QueryDownloadTime();
		QueryPath();
		QueryEmail();
		QueryReRite();
		QueryMP();

		CenterWindow(GetParent());

		QuerySetProd();

		RegCloseKey(Regentry);
		Regentry = NULL;
		delete Regentry;

		return TRUE;	

}


Thanks!,
jayjay
Questionredefinition Enum member on IDL file Pin
iman_kh10-Jul-08 7:32
iman_kh10-Jul-08 7:32 
QuestionHow to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
dolly8-Jul-08 1:40
dolly8-Jul-08 1:40 
AnswerRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
Stuart Dootson8-Jul-08 6:58
professionalStuart Dootson8-Jul-08 6:58 
QuestionRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
dolly8-Jul-08 18:06
dolly8-Jul-08 18:06 
AnswerRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler [modified] Pin
Stephen Hewitt10-Jul-08 19:25
Stephen Hewitt10-Jul-08 19:25 
GeneralRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
Stuart Dootson11-Jul-08 5:24
professionalStuart Dootson11-Jul-08 5:24 
GeneralRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler Pin
Stephen Hewitt13-Jul-08 14:23
Stephen Hewitt13-Jul-08 14:23 
QuestionRe: How to set IMAGE_DLLCHARACTERISTICS_NX_COMPAT bit to make DLL DEP compatible with VC 6.0 compiler [modified] Pin
dolly17-Jul-08 19:47
dolly17-Jul-08 19:47 
AnswerObviously this will not work! Pin
Elmue2-Jul-20 7:34
Elmue2-Jul-20 7:34 
GeneralRe: Obviously this will not work! Pin
Richard Deeming2-Jul-20 23:20
mveRichard Deeming2-Jul-20 23:20 
AnswerRe: Obviously this will not work! Pin
Elmue3-Jul-20 19:42
Elmue3-Jul-20 19:42 
QuestionNamespace-extension: How to customize "Details" in left-pane Pin
seansu5-Jul-08 1:04
seansu5-Jul-08 1:04 
QuestionC++ ATL COM addin DLL blocked by Vista's DEP Pin
dolly4-Jul-08 1:33
dolly4-Jul-08 1:33 
AnswerRe: C++ ATL COM addin DLL blocked by Vista's DEP Pin
Anna-Jayne Metcalfe7-Sep-08 4:11
Anna-Jayne Metcalfe7-Sep-08 4:11 
QuestionConvert Visual Studio 2005 ATL COM project into Visual C++ 6.0 project Pin
dolly3-Jul-08 1:49
dolly3-Jul-08 1:49 
AnswerRe: Convert Visual Studio 2005 ATL COM project into Visual C++ 6.0 project Pin
hdj83114-Aug-08 21:51
hdj83114-Aug-08 21:51 
QuestionCalendar Control question [modified] Pin
monsieur_jj2-Jul-08 21:59
monsieur_jj2-Jul-08 21: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.