Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: why to use "pDC->SelectObject(pOldFont)" usually? Pin
Joe Woodbury7-Apr-04 18:06
professionalJoe Woodbury7-Apr-04 18:06 
GeneralRe: why to use "pDC->SelectObject(pOldFont)" usually? Pin
Mike Dimmick7-Apr-04 23:44
Mike Dimmick7-Apr-04 23:44 
GeneralRe: why to use "pDC->SelectObject(pOldFont)" usually? Pin
Joe Woodbury8-Apr-04 11:31
professionalJoe Woodbury8-Apr-04 11:31 
Generalwhere can i get the setup files for sdk Pin
denly7-Apr-04 17:44
denly7-Apr-04 17:44 
GeneralRe: where can i get the setup files for sdk Pin
David Crow8-Apr-04 2:11
David Crow8-Apr-04 2:11 
GeneralCMonthCalCtrl::SizeMinReq() Pin
User 5838527-Apr-04 17:32
User 5838527-Apr-04 17:32 
GeneralSetScrollSizes. Pin
Member 9541237-Apr-04 17:28
Member 9541237-Apr-04 17:28 
GeneralRe: SetScrollSizes. Pin
John R. Shaw7-Apr-04 19:21
John R. Shaw7-Apr-04 19:21 
I can only remember an assertion error occuring when some thing other than MM_TEXT is passed as the first argument. The following is from a small paint program I wrote:
void CSPaintView::UpdateScrollSizes()
{
	CSize sizeTotal = m_Grid.GetDrawSize();
	CSize sizePage(sizeTotal.cx >> 1, sizeTotal.cy >> 1);
	sizeTotal.cx += sizeTotal.cx >> 1;
	sizeTotal.cy += sizeTotal.cy >> 1;

	CSize sizeLine(10 * m_Grid.GetMag(), 10 * m_Grid.GetMag());

	SetScrollSizes(MM_TEXT, sizeTotal, sizeDefault, sizeLine);
}


This function is called from multiple locations in my view class functions and has always worked fine. Just single step into the SetScrollSizes function and look at the place where the assertion occurs (assuming CScrollView derive class).


INTP
GeneralUSB Help Plz Pin
MrNiceBerG7-Apr-04 17:07
MrNiceBerG7-Apr-04 17:07 
GeneralDirectory Information Pin
IceBerG717-Apr-04 16:27
IceBerG717-Apr-04 16:27 
GeneralRe: Directory Information Pin
valikac7-Apr-04 16:51
valikac7-Apr-04 16:51 
GeneralRe: Directory Information Pin
IceBerG717-Apr-04 17:57
IceBerG717-Apr-04 17:57 
GeneralRe: Directory Information Pin
Joe Woodbury7-Apr-04 18:13
professionalJoe Woodbury7-Apr-04 18:13 
GeneralAbout msdxm.ocx Pin
feiyanghu7-Apr-04 16:24
feiyanghu7-Apr-04 16:24 
GeneralFile Database Access Method Pin
IceBerG717-Apr-04 15:07
IceBerG717-Apr-04 15:07 
GeneralRe: File Database Access Method Pin
Joe Woodbury7-Apr-04 15:52
professionalJoe Woodbury7-Apr-04 15:52 
GeneralRe: File Database Access Method Pin
IceBerG717-Apr-04 16:26
IceBerG717-Apr-04 16:26 
GeneralRe: File Database Access Method Pin
Joe Woodbury7-Apr-04 18:01
professionalJoe Woodbury7-Apr-04 18:01 
GeneralRe: File Database Access Method Pin
IceBerG717-Apr-04 18:06
IceBerG717-Apr-04 18:06 
GeneralRe: File Database Access Method Pin
Joe Woodbury7-Apr-04 18:36
professionalJoe Woodbury7-Apr-04 18:36 
GeneralFiltering OnFileOpen Pin
J Guds7-Apr-04 11:54
J Guds7-Apr-04 11:54 
GeneralRe: Filtering OnFileOpen Pin
valikac7-Apr-04 16:53
valikac7-Apr-04 16:53 
GeneralRe: Filtering OnFileOpen Pin
avenger_sb258-Apr-04 12:34
avenger_sb258-Apr-04 12:34 
GeneralGUI Pin
eldar_20017-Apr-04 11:36
eldar_20017-Apr-04 11:36 
GeneralRe: GUI Pin
valikac7-Apr-04 16:54
valikac7-Apr-04 16:54 

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.