ÉîÈëdz³öMFCµÚ2°æ(PDF¸ñʽ)-µÚ175²¿·Ö
°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·ҳ£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0130¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0131¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0132¡¡¡¡CStroke£º£ºCStroke£¨UINT¡¡nPenWidth£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0133¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0134¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_nPenWidth¡¡=¡¡nPenWidth£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0135¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£SetRectEmpty£¨£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0136¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0137¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0138¡¡¡¡void¡¡CStroke£º£ºSerialize£¨CArchive&¡¡ar£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0139¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0140¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if¡¡£¨ar¡£IsStoring£¨£©£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0141¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0142¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ar¡¡¡¡m_rectBounding£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0149¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡WORD¡¡w£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0150¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ar¡¡¡·¡·¡¡w£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0151¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_nPenWidth¡¡=¡¡w£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0152¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_pointArray¡£Serialize£¨ar£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0153¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0154¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0155¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0156¡¡¡¡BOOL¡¡CStroke£º£ºDrawStroke£¨CDC*¡¡pDC£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0157¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0158¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CPen¡¡penStroke£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0159¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if¡¡£¨£¡penStroke¡£CreatePen£¨PS_SOLID£»¡¡m_nPenWidth£»¡¡RGB£¨0£»0£»0£©£©£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0160¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡return¡¡FALSE£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0161¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CPen*¡¡pOldPen¡¡=¡¡pDC¡¡·SelectObject£¨&penStroke£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0162¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡pDC¡¡·MoveTo£¨m_pointArray£§0£§£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0163¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for¡¡£¨int¡¡i=1£»¡¡i¡¡¡¶¡¡m_pointArray¡£GetSize£¨£©£»¡¡i£«£«£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0164¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0165¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡pDC¡¡·LineTo£¨m_pointArray£§i£§£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0166¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0167¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0168¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡pDC¡¡·SelectObject£¨pOldPen£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0169¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡return¡¡TRUE£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0170¡¡¡¡£ý¡¡
890¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡953¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¸½ä›£Â¡¡¡¡¡¡¡¡Scribble¡¡Step5¡¡¡¡ÍêÕûÔʼ´a¡¡
#0171¡¡¡¡void¡¡CScribbleDoc£º£ºOnEditClearAll£¨£©¡¡
#0172¡¡¡¡£û¡¡
#0173¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡DeleteContents£¨£©£»¡¡
#0174¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡SetModifiedFlag£¨£©£»¡¡¡¡//¡¡Mark¡¡the¡¡document¡¡as¡¡having¡¡been¡¡modified£»¡¡for¡¡
#0175¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡purposes¡¡of¡¡confirming¡¡File¡¡Close¡£¡¡
#0176¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡UpdateAllViews£¨NULL£©£»¡¡
#0177¡¡¡¡£ý¡¡
#0178¡¡
#0179¡¡¡¡void¡¡CScribbleDoc£º£ºOnPenThickOrThin£¨£©¡¡
#0180¡¡¡¡£û¡¡
#0181¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Toggle¡¡the¡¡state¡¡of¡¡the¡¡pen¡¡between¡¡thin¡¡or¡¡thick¡£¡¡
#0182¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_bThickPen¡¡=¡¡£¡m_bThickPen£»¡¡
#0183¡¡
#0184¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Change¡¡the¡¡current¡¡pen¡¡to¡¡reflect¡¡the¡¡new¡¡user¡specified¡¡width¡£¡¡
#0185¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ReplacePen£¨£©£»¡¡
#0186¡¡¡¡£ý¡¡
#0187¡¡
#0188¡¡¡¡void¡¡CScribbleDoc£º£ºReplacePen£¨£©¡¡
#0189¡¡¡¡£û¡¡
#0190¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_nPenWidth¡¡=¡¡m_bThickPen£¿¡¡m_nThickWidth¡¡£º¡¡m_nThinWidth£»¡¡
#0191¡¡
#0192¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Change¡¡the¡¡current¡¡pen¡¡to¡¡reflect¡¡the¡¡new¡¡user¡specified¡¡width¡£¡¡
#0193¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_penCur¡£DeleteObject£¨£©£»¡¡
#0194¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_penCur¡£CreatePen£¨PS_SOLID£»¡¡m_nPenWidth£»¡¡RGB£¨0£»0£»0£©£©£»¡¡//¡¡solid¡¡black¡¡
#0195¡¡¡¡£ý¡¡
#0196¡¡
#0197¡¡¡¡void¡¡CScribbleDoc£º£ºOnUpdateEditClearAll£¨CCmdUI*¡¡pCmdUI£©¡¡
#0198¡¡¡¡£û¡¡
#0199¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Enable¡¡the¡¡mand¡¡user¡¡interface¡¡object¡¡£¨menu¡¡item¡¡or¡¡tool¡¡bar¡¡
#0200¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡button£©¡¡if¡¡the¡¡document¡¡is¡¡non¡empty£»¡¡i¡£e¡££»¡¡has¡¡at¡¡least¡¡one¡¡stroke¡£¡¡
#0201¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡pCmdUI¡¡·Enable£¨£¡m_strokeList¡£IsEmpty£¨£©£©£»¡¡
#0202¡¡¡¡£ý¡¡
#0203¡¡
#0204¡¡¡¡void¡¡CScribbleDoc£º£ºOnUpdatePenThickOrThin£¨CCmdUI*¡¡pCmdUI£©¡¡
#0205¡¡¡¡£û¡¡
#0206¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Add¡¡check¡¡mark¡¡to¡¡Draw¡¡Thick¡¡Line¡¡menu¡¡item£»¡¡if¡¡the¡¡current¡¡
#0207¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡pen¡¡width¡¡is¡¡¡¨thick¡¨¡£¡¡
#0208¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡pCmdUI¡¡·SetCheck£¨m_bThickPen£©£»¡¡
#0209¡¡¡¡£ý¡¡
#0210¡¡
#0211¡¡¡¡void¡¡CScribbleDoc£º£ºOnPenWidths£¨£©¡¡
#0212¡¡¡¡£û¡¡
#0213¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CPenWidthsDlg¡¡dlg£»¡¡
#0214¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Initialize¡¡dialog¡¡data¡¡
#0215¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡dlg¡£m_nThinWidth¡¡=¡¡m_nThinWidth£»¡¡
#0216¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡dlg¡£m_nThickWidth¡¡=¡¡m_nThickWidth£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡891¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡954¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡µÚÎåƪ¡¡¡¡¡¡¡¡¸½ä›¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0217¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0218¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Invoke¡¡the¡¡dialog¡¡box¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0219¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if¡¡£¨dlg¡£DoModal£¨£©¡¡==¡¡IDOK£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0220¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0221¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡retrieve¡¡the¡¡dialog¡¡data¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0222¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_nThinWidth¡¡=¡¡dlg¡£m_nThinWidth£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0223¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_nThickWidth¡¡=¡¡dlg¡£m_nThickWidth£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0224¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0225¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Update¡¡the¡¡pen¡¡that¡¡is¡¡used¡¡by¡¡views¡¡when¡¡drawing¡¡new¡¡strokes£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0226¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡to¡¡reflect¡¡the¡¡new¡¡pen¡¡width¡¡definitions¡¡for¡¡¡¨thick¡¨¡¡and¡¡¡¨thin¡¨¡£¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0227¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ReplacePen£¨£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0228¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0229¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0230¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0231¡¡¡¡void¡¡CStroke£º£ºFinishStroke£¨£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0232¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0233¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Calculate¡¡the¡¡bounding¡¡rectangle¡£¡¡¡¡It's¡¡needed¡¡for¡¡smart¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0234¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡repainting¡£¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0235¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0236¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡if¡¡£¨m_pointArray¡£GetSize£¨£©==0£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0237¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0238¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£SetRectEmpty£¨£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0239¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡return£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0240¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0241¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CPoint¡¡pt¡¡=¡¡m_pointArray£§0£§£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0242¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡¡=¡¡CRect£¨pt¡£x£»¡¡pt¡£y£»¡¡pt¡£x£»¡¡pt¡£y£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0243¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0244¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡for¡¡£¨int¡¡i=1£»¡¡i¡¡¡¶¡¡m_pointArray¡£GetSize£¨£©£»¡¡i£«£«£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0245¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£û¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0246¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡If¡¡the¡¡point¡¡lies¡¡outside¡¡of¡¡the¡¡accumulated¡¡bounding¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0247¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡rectangle£»¡¡then¡¡inflate¡¡the¡¡bounding¡¡rect¡¡to¡¡include¡¡it¡£¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0248¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡pt¡¡=¡¡m_pointArray£§i£§£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0249¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£left¡¡¡¡¡¡¡¡¡¡=¡¡min£¨m_rectBounding¡£left£»¡¡pt¡£x£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0250¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£right¡¡¡¡¡¡¡¡=¡¡max£¨m_rectBounding¡£right£»¡¡pt¡£x£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0251¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£top¡¡¡¡¡¡¡¡¡¡¡¡=¡¡max£¨m_rectBounding¡£top£»¡¡pt¡£y£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0252¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£bottom¡¡¡¡¡¡=¡¡min£¨m_rectBounding¡£bottom£»¡¡pt¡£y£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0253¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡£ý¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0254¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0255¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡Add¡¡the¡¡pen¡¡width¡¡to¡¡the¡¡bounding¡¡rectangle¡£¡¡¡¡This¡¡is¡¡necessary¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0256¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡to¡¡account¡¡for¡¡the¡¡width¡¡of¡¡the¡¡stroke¡¡when¡¡invalidating¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0257¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡the¡¡screen¡£¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0258¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡m_rectBounding¡£InflateRect£¨CSize£¨m_nPenWidth£»¡¡¡£¨int£©m_nPenWidth£©£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0259¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡return£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0260¡¡¡¡£ý¡¡
892¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡955¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¸½ä›£Â¡¡¡¡¡¡¡¡Scribble¡¡Step5¡¡¡¡ÍêÕûÔʼ´a¡¡
SCRIBBLEVIEW¡£H¡¡
#0001¡¡¡¡class¡¡CScribbleView¡¡£º¡¡public¡¡CScrollView¡¡
#0002¡¡¡¡£û¡¡
#0003¡¡¡¡protected£º¡¡//¡¡create¡¡from¡¡serialization¡¡only¡¡
#0004¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CScribbleView£¨£©£»¡¡
#0005¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡DECLARE_DYNCREATE£¨CScribbleView£©¡¡
#0006¡¡
#0007¡¡¡¡//¡¡Attributes¡¡
#0008¡¡¡¡public£º¡¡
#0009¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CScribbleDoc*¡¡GetDocument£¨£©£»¡¡
#0010¡¡
#0011¡¡¡¡protected£º¡¡
#0012¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CStroke*¡¡¡¡¡¡¡¡m_pStrokeCur£»¡¡¡¡¡¡//¡¡the¡¡stroke¡¡in¡¡progress¡¡
#0013¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡CPoint¡¡¡¡¡¡¡¡¡¡¡¡m_ptPrev£»¡¡¡¡//¡¡the¡¡last¡¡mouse¡¡pt¡¡in¡¡the¡¡stroke¡¡in¡¡progress¡¡
#0014¡¡
#0015¡¡¡¡//¡¡Operations¡¡
#0016¡¡¡¡public£º¡¡
#0017¡¡
#0018¡¡¡¡//¡¡Overrides¡¡
#0019¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//¡¡ClassWizard¡¡generated¡¡virtual¡¡function¡¡overrides¡¡
#0020¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//£û£ûAFX_VIRTUAL£¨CScribbleView£©¡¡
#0021¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡public£º¡¡
#0022¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡OnDraw£¨CDC*¡¡pDC£©£»¡¡¡¡//¡¡overridden¡¡to¡¡draw¡¡this¡¡view¡¡
#0023¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡BOOL¡¡PreCreateWindow£¨CREATESTRUCT&¡¡cs£©£»¡¡
#0024¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡OnInitialUpdate£¨£©£»¡¡
#0025¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡protected£º¡¡
#0026¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡BOOL¡¡OnPreparePrinting£¨CPrintInfo*¡¡pInfo£©£»¡¡
#0027¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡OnBeginPrinting£¨CDC*¡¡pDC£»¡¡CPrintInfo*¡¡pInfo£©£»¡¡
#0028¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡OnEndPrinting£¨CDC*¡¡pDC£»¡¡CPrintInfo*¡¡pInfo£©£»¡¡
#0029¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡OnUpdate£¨CView*¡¡pSender£»¡¡LPARAM¡¡lHint£»¡¡CObject*¡¡pHint£©£»¡¡
#0030¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡OnPrint£¨CDC*¡¡pDC£»¡¡CPrintInfo*¡¡pInfo£©£»¡¡
#0031¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//£ý£ýAFX_VIRTUAL¡¡
#0032¡¡
#0033¡¡¡¡//¡¡Implementation¡¡
#0034¡¡¡¡public£º¡¡
#0035¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡void¡¡PrintTitlePage£¨CDC*¡¡pDC£»¡¡CPrintInfo*¡¡pInfo£©£»¡¡
#0036¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡void¡¡PrintPageHeader£¨CDC*¡¡pDC£»¡¡CPrintInfo*¡¡pInfo£»¡¡CString&¡¡strHeader£©£»¡¡
#0037¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡~CScribbleView£¨£©£»¡¡
#0038¡¡¡¡#ifdef¡¡_DEBUG¡¡
#0039¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡AssertValid£¨£©¡¡const£»¡¡
#0040¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡virtual¡¡void¡¡Dump£¨CDumpContext&¡¡dc£©¡¡const£»¡¡
#0041¡¡¡¡#endif¡¡
#0042¡¡
#0043¡¡¡¡protected£º¡¡
#0044¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡893¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Page¡¡956¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡µÚÎåƪ¡¡¡¡¡¡¡¡¸½ä›¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0045¡¡¡¡//¡¡Generated¡¡message¡¡map¡¡functions¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0046¡¡¡¡protected£º¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0047¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//£û£ûAFX_MSG£¨CScribbleView£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0048¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡afx_msg¡¡void¡¡OnLButtonDown£¨UINT¡¡nFlags£»¡¡CPoint¡¡point£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0049¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡afx_msg¡¡void¡¡OnLButtonUp£¨UINT¡¡nFlags£»¡¡CPoint¡¡point£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0050¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡afx_msg¡¡void¡¡OnMouseMove£¨UINT¡¡nFlags£»¡¡CPoint¡¡point£©£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0051¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡//£ý£ýAFX_MSG¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0052¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡DECLARE_MESSAGE_MAP£¨£©¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0053¡¡¡¡£ý£»¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0054¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡#0055¡¡¡¡#ifndef¡¡_DEBUG¡¡¡¡//¡¡debug¡¡version¡¡in¡¡ScribV