Click here to Skip to main content
15,914,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: strcpy | strcat -> Errors Pin
David Crow27-Nov-06 4:11
David Crow27-Nov-06 4:11 
AnswerRe: strcpy | strcat -> Errors Pin
Programm3r27-Nov-06 4:17
Programm3r27-Nov-06 4:17 
GeneralRe: strcpy | strcat -> Errors Pin
benjymous27-Nov-06 4:25
benjymous27-Nov-06 4:25 
GeneralRe: strcpy | strcat -> Errors Pin
kakan27-Nov-06 4:29
professionalkakan27-Nov-06 4:29 
QuestionChanging Menu Item's Font OR Bold Menu Items Pin
Andy Rama27-Nov-06 3:02
Andy Rama27-Nov-06 3:02 
AnswerRe: Changing Menu Item's Font OR Bold Menu Items Pin
Ing.Raiz8227-Nov-06 22:04
Ing.Raiz8227-Nov-06 22:04 
GeneralRe: Changing Menu Item's Font OR Bold Menu Items Pin
Andy Rama27-Nov-06 22:21
Andy Rama27-Nov-06 22:21 
QuestionProblem with CPropertySheet class Pin
spielehelfer27-Nov-06 2:27
spielehelfer27-Nov-06 2:27 
Hi, I've got some Problems with CPropertySheet in the development of a C++ application in emVC++.

Problem is:
I have a PropertySheet width 4 pages (all same size 260*92); but they all get cut of at the right side.
So I startet do derive a class from CPropertySheet and overwrite the OnInit Method like in this project: Free size and extended styles in CPropertySheets

This brought me a few Problems:
- the CPropertyPage* pppg = GetActivePage(); causes access violation so I changed it into CPropertyPage* pppg = GetPage(0);
(curious from outside, in the dialog class i can use GetActivePage(), inside I only get a 0x0 pointer)
- also the pppg->MapDialogRect(rcOriginal); causes access violation and all other Methods that later on uses pppg too.

This brings me down to the problem that I cannot read out the PropertyPage size on runtime and have to use fixed values to resize.

so only these lines had been left from all the code:
<br />
	BOOL bResult = CPropertySheet::OnInitDialog();<br />
	<br />
	ModifyStyleEx(0, WS_EX_TOOLWINDOW);<br />
	CRect rcModified;<br />
<br />
	//Tab<br />
	GetTabControl()->GetWindowRect(rcModified);<br />
	ScreenToClient(&rcModified);<br />
	rcModified.right +=50;<br />
	GetTabControl()->SetWindowPos( NULL, 0,0, <br />
						rcModified.Width(),<br />
						rcModified.Height(), <br />
						SWP_NOMOVE | SWP_NOOWNERZORDER | <br />
						SWP_NOZORDER | SWP_NOACTIVATE );<br />
<br />
<br />
<br />
	//Sheet<br />
	GetWindowRect(rcModified);<br />
	ScreenToClient(&rcModified);<br />
	rcModified.right +=50;<br />
	SetWindowPos( NULL, 0,0, <br />
						rcModified.Width(),<br />
						rcModified.Height(),  <br />
						SWP_NOMOVE | SWP_NOOWNERZORDER | <br />
						SWP_NOZORDER | SWP_NOACTIVATE );<br />


Anyone has an idea why I cannot acces the ActivePage() or also the work with the PropertyPage reference loaded by GetPage(0) causes access violations?
QuestionCImageList - Mask Pin
Ajay L D27-Nov-06 2:06
Ajay L D27-Nov-06 2:06 
QuestionHow to achive application load balancing in win32 application Pin
Hemant kulkarni27-Nov-06 2:04
Hemant kulkarni27-Nov-06 2:04 
AnswerRe: How to achive application load balancing in win32 application Pin
Scott Holt27-Nov-06 15:09
Scott Holt27-Nov-06 15:09 
QuestionI am having one MFC application ,which is also having one ATL interface. Pin
chintuborntocode27-Nov-06 1:15
chintuborntocode27-Nov-06 1:15 
QuestionQuestion about CFileDialog .. Pin
Sakthiu27-Nov-06 1:15
Sakthiu27-Nov-06 1:15 
QuestionRe: Question about CFileDialog .. Pin
David Crow27-Nov-06 4:13
David Crow27-Nov-06 4:13 
QuestionTime taken by a funtion Pin
RockyJames27-Nov-06 0:52
RockyJames27-Nov-06 0:52 
AnswerRe: Time taken by a funtion Pin
Sakthiu27-Nov-06 1:10
Sakthiu27-Nov-06 1:10 
AnswerRe: Time taken by a funtion Pin
Maximilien27-Nov-06 2:32
Maximilien27-Nov-06 2:32 
Questionget process parent without using PROCESSENTRY32 Pin
samira forooghi27-Nov-06 0:25
samira forooghi27-Nov-06 0:25 
AnswerRe: get process parent without using PROCESSENTRY32 Pin
napalm2k28-Jun-10 14:31
napalm2k28-Jun-10 14:31 
Questionabout GridCtrl Pin
zizzzz27-Nov-06 0:04
zizzzz27-Nov-06 0:04 
AnswerRe: about GridCtrl Pin
Rage27-Nov-06 0:25
professionalRage27-Nov-06 0:25 
GeneralRe: about GridCtrl Pin
zizzzz27-Nov-06 1:19
zizzzz27-Nov-06 1:19 
QuestionHow can i remove menubar from Bitmap Pin
Neo Andreson26-Nov-06 23:05
Neo Andreson26-Nov-06 23:05 
AnswerRe: How can i remove menubar from Bitmap Pin
Cedric Moonen26-Nov-06 23:52
Cedric Moonen26-Nov-06 23:52 
QuestionHow can i edit Bitmap using application Pin
Neo Andreson26-Nov-06 23:02
Neo Andreson26-Nov-06 23:02 

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.