Click here to Skip to main content
15,883,988 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating a CPropertySheet-based app Pin
Moak30-Nov-07 14:09
Moak30-Nov-07 14:09 
AnswerRe: Creating a CPropertySheet-based app Pin
Alain Rist30-Nov-07 21:50
Alain Rist30-Nov-07 21:50 
QuestionFailed to create empty document Pin
RomTibi30-Nov-07 10:12
RomTibi30-Nov-07 10:12 
QuestionRe: Failed to create empty document Pin
David Crow30-Nov-07 10:45
David Crow30-Nov-07 10:45 
AnswerRe: Failed to create empty document Pin
RomTibi30-Nov-07 19:45
RomTibi30-Nov-07 19:45 
QuestionSet up dimensions Pin
Schehaider_Aymen30-Nov-07 10:00
Schehaider_Aymen30-Nov-07 10:00 
AnswerRe: Set up dimensions Pin
followait30-Nov-07 18:26
followait30-Nov-07 18:26 
GeneralRe: Set up dimensions [modified] Pin
Schehaider_Aymen30-Nov-07 22:18
Schehaider_Aymen30-Nov-07 22:18 
hi,
Sorry it doesn't work here teh errors
<br />
void CForthForm::OnInitialUpdate() <br />
{<br />
	CFormView::OnInitialUpdate();<br />
	CClientDC dc;<br />
	dc.SetMapMode(MM_ANISOTROPIC);<br />
	CRect rt;<br />
	GetClientRect(&rt);<br />
	SetWindowExt(1200,134);<br />
	SetViewportExt(rt.width,rt.heigh);<br />


<br />
:\Works\C 6\AutoParall\ForthForm.cpp(69) : error C2512: 'CClientDC' : no appropriate default constructor available<br />
D:\Works\C 6\AutoParall\ForthForm.cpp(73) : error C2065: 'SetWindowExt' : undeclared identifier<br />
D:\Works\C 6\AutoParall\ForthForm.cpp(74) : error C2065: 'SetViewportExt' : undeclared identifier<br />
D:\Works\C 6\AutoParall\ForthForm.cpp(74) : error C2039: 'width' : is not a member of 'CRect'<br />
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(225) : see declaration of 'CRect'<br />
D:\Works\C 6\AutoParall\ForthForm.cpp(74) : error C2039: 'heigh' : is not a member of 'CRect'<br />
        c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(225) : see declaration of 'CRect'<br />
Error executing cl.exe.<br />
Creating browse info file...<br />


PS: I m using the CFormView Class.Frown | :(
othe thing, on which function membe should i modify the code. OnInitialUpdate() or no ??


-- modified at 4:47 Saturday 1st December, 2007

"The Ultimate Limit Is Only Your Imagination."

GeneralRe: Set up dimensions Pin
CPallini1-Dec-07 0:22
mveCPallini1-Dec-07 0:22 
GeneralRe: Set up dimensions [modified] Pin
Schehaider_Aymen1-Dec-07 0:32
Schehaider_Aymen1-Dec-07 0:32 
QuestionCode works when debugging and not when executing Pin
Spykraft30-Nov-07 9:20
Spykraft30-Nov-07 9:20 
AnswerRe: Code works when debugging and not when executing Pin
Randor 30-Nov-07 9:44
professional Randor 30-Nov-07 9:44 
GeneralRe: Code works when debugging and not when executing Pin
Spykraft30-Nov-07 10:41
Spykraft30-Nov-07 10:41 
AnswerRe: Code works when debugging and not when executing Pin
peterchen30-Nov-07 9:56
peterchen30-Nov-07 9:56 
GeneralRe: Code works when debugging and not when executing Pin
Spykraft30-Nov-07 10:44
Spykraft30-Nov-07 10:44 
GeneralRe: Code works when debugging and not when executing Pin
peterchen1-Dec-07 3:20
peterchen1-Dec-07 3:20 
AnswerRe: Code works when debugging and not when executing Pin
ied30-Nov-07 12:27
ied30-Nov-07 12:27 
Questionwhat is the shadow in clinet area Pin
_Pinux_30-Nov-07 5:00
_Pinux_30-Nov-07 5:00 
AnswerRe: what is the shadow in clinet area Pin
Iain Clarke, Warrior Programmer30-Nov-07 6:27
Iain Clarke, Warrior Programmer30-Nov-07 6:27 
QuestionBitBlt mystery problem Pin
csmanul30-Nov-07 4:40
csmanul30-Nov-07 4:40 
QuestionRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 9:46
Mark Salsbery30-Nov-07 9:46 
AnswerRe: BitBlt mystery problem Pin
csmanul30-Nov-07 11:58
csmanul30-Nov-07 11:58 
GeneralRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 12:12
Mark Salsbery30-Nov-07 12:12 
GeneralRe: BitBlt mystery problem Pin
csmanul30-Nov-07 12:58
csmanul30-Nov-07 12:58 
GeneralRe: BitBlt mystery problem Pin
Mark Salsbery30-Nov-07 13:18
Mark Salsbery30-Nov-07 13:18 

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.