Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change day with button click. Pin
Ashish Chauhan11-Mar-08 1:38
Ashish Chauhan11-Mar-08 1:38 
GeneralRe: How to change day with button click. [modified] Pin
Ashish Chauhan11-Mar-08 2:38
Ashish Chauhan11-Mar-08 2:38 
AnswerRe: How to change day with button click. Pin
Rajesh R Subramanian11-Mar-08 9:57
professionalRajesh R Subramanian11-Mar-08 9:57 
GeneralRe: How to change day with button click. Pin
Ashish Chauhan11-Mar-08 21:09
Ashish Chauhan11-Mar-08 21:09 
AnswerRe: How to change day with button click. Pin
Rajesh R Subramanian11-Mar-08 21:55
professionalRajesh R Subramanian11-Mar-08 21:55 
GeneralRe: How to change day with button click. Pin
Ashish Chauhan11-Mar-08 22:43
Ashish Chauhan11-Mar-08 22:43 
GeneralRe: How to change day with button click. Pin
Rajesh R Subramanian11-Mar-08 23:21
professionalRajesh R Subramanian11-Mar-08 23:21 
GeneralRe: How to change day with button click. Pin
Ashish Chauhan11-Mar-08 23:30
Ashish Chauhan11-Mar-08 23:30 
I'm not creating any dialog for property page..What i'm doing is that i am creating 3 pages (Property pages) and adding those pages in property sheet.
Also it's Non-MFC..

Here's my code for creating the sheet..
Should i start new thread??

HWND CreatePropSheet()
{
	PROPSHEETPAGE psp[4];
	PROPSHEETHEADER psh;
	
		
	memset(psp, 0, sizeof(PROPSHEETPAGE) * 4);
	memset(&psh, 0, sizeof(PROPSHEETHEADER));
	
	//Fill out the PROPSHEETPAGE data structure Tab 1
	psp[0].dwSize		 = sizeof(PROPSHEETPAGE);
	psp[0].dwFlags		 = PSP_USETITLE;
	psp[0].hInstance	 = NULL;//g_hInst;
	psp[0].pszTemplate	 = MAKEINTRESOURCE(IDD_PROPPAGE_MEDIUM);
	psp[0].pszIcon		 = NULL;
	psp[0].pfnDlgProc	 = (DLGPROC)Page1DlgProc;
	psp[0].pszTitle 	 = TEXT("Job");
	//psp[0].lParam		 = 0;
	
	
	//Fill out the PROPSHEETPAGE data structure Tab 2
	psp[1].dwSize		 = sizeof(PROPSHEETPAGE);
	psp[1].dwFlags		 = PSP_USETITLE;
	psp[1].hInstance	 = NULL;
	psp[1].pszTemplate	 = MAKEINTRESOURCE(IDD_PROPPAGE_MEDIUM2);
	psp[1].pszIcon		 = NULL;
	psp[1].pfnDlgProc	 = (DLGPROC)Page3DlgProc;
	psp[1].pszTitle 	 = TEXT("Schedule");
	

	//Fill out the PROPSHEETPAGE data structure Tab 3
	psp[2].dwSize		 = sizeof(PROPSHEETPAGE);
	psp[2].dwFlags		 = PSP_USETITLE;
	psp[2].hInstance	 = NULL;
	psp[2].pszTemplate	 = MAKEINTRESOURCE(IDD_PROPPAGE_MEDIUM3);
	psp[2].pszIcon		 = NULL;
	psp[2].pfnDlgProc	 = (DLGPROC)Page4DlgProc;
	psp[2].pszTitle 	 = TEXT("Scan Options");
	
	
	//Fill out the PROPSHEETHEADER
	psh.dwSize	 = sizeof(PROPSHEETHEADER);
	psh.dwFlags 	 = PSH_PROPSHEETPAGE |PSH_USECALLBACK |     PSH_MODELESS;

	psh.hwndParent	 = NULL;
	psh.hInstance    = g_hInst;
	psh.pszIcon 	 = NULL;
	psh.pszCaption	 = "Automatic Virus Check";
	psh.nPages	 = sizeof(psp) / sizeof(PROPSHEETPAGE);
	psh.nStartPage	 = 0;
	psh.ppsp	 = (LPCPROPSHEETPAGE) &psp;
	psh.pfnCallback  = (PFNPROPSHEETCALLBACK)PSheetCallback;

	return (HWND)PropertySheet(&psh);
}


Ash..

GeneralRe: How to change day with button click. Pin
Ashish Chauhan11-Mar-08 23:33
Ashish Chauhan11-Mar-08 23:33 
GeneralRe: How to change day with button click. Pin
Rajesh R Subramanian11-Mar-08 23:41
professionalRajesh R Subramanian11-Mar-08 23:41 
AnswerRe: How to change day with button click. Pin
Rajesh R Subramanian12-Mar-08 0:05
professionalRajesh R Subramanian12-Mar-08 0:05 
GeneralRe: How to change day with button click. Pin
Ashish Chauhan12-Mar-08 0:58
Ashish Chauhan12-Mar-08 0:58 
GeneralRe: How to change day with button click. Pin
Rajesh R Subramanian11-Mar-08 4:31
professionalRajesh R Subramanian11-Mar-08 4:31 
QuestionQuestion about how to kill thread that i create with _beginthreadex ? Pin
Yanshof10-Mar-08 20:35
Yanshof10-Mar-08 20:35 
AnswerRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Maxwell Chen10-Mar-08 20:40
Maxwell Chen10-Mar-08 20:40 
AnswerRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Peter Weyzen10-Mar-08 20:41
Peter Weyzen10-Mar-08 20:41 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? [modified] Pin
Yanshof10-Mar-08 21:15
Yanshof10-Mar-08 21:15 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Cedric Moonen10-Mar-08 21:33
Cedric Moonen10-Mar-08 21:33 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Yanshof10-Mar-08 21:39
Yanshof10-Mar-08 21:39 
GeneralRe: Question about how to kill thread that i create with _beginthreadex ? Pin
Peter Weyzen10-Mar-08 21:54
Peter Weyzen10-Mar-08 21:54 
QuestionHow virtual destructor works under the hood? Pin
abhijitr10-Mar-08 19:41
abhijitr10-Mar-08 19:41 
AnswerRe: How virtual destructor works under the hood? Pin
Peter Weyzen10-Mar-08 19:47
Peter Weyzen10-Mar-08 19:47 
GeneralRe: How virtual destructor works under the hood? Pin
Rajkumar R10-Mar-08 23:53
Rajkumar R10-Mar-08 23:53 
GeneralRe: How virtual destructor works under the hood? Pin
Peter Weyzen11-Mar-08 7:46
Peter Weyzen11-Mar-08 7:46 
GeneralRe: How virtual destructor works under the hood? Pin
Rajkumar R11-Mar-08 8:27
Rajkumar R11-Mar-08 8:27 

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.