亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cmndlg32.c

?? THE DECISION TREE ALGORITHM USED VC
?? C
?? 第 1 頁 / 共 5 頁
字號:
*
*        This function initializes the PAGESETUPDLG structure for all modes
*        possible: standard, using a hook or using a customized template.
*
*    RETURN VALUES:
*        void.
*
****************************************************************************/
void PageSetup( HWND hWnd )
{

    // initialize PAGESETUPDLG structure
    psDlg.lStructSize = sizeof(PAGESETUPDLG);
    psDlg.hwndOwner = hWnd;
    psDlg.hDevMode = (HANDLE)NULL;
    psDlg.hDevNames = (HANDLE)NULL;
    psDlg.hInstance = (HANDLE)hInst;
    psDlg.lCustData = (LPARAM)NULL;
	psDlg.hPageSetupTemplate = (HGLOBAL)NULL;

    switch( wMode )
    {
        case IDM_STANDARD:
            psDlg.Flags = PSD_DEFAULTMINMARGINS | PSD_DISABLEPAGEPAINTING |
              PSD_DISABLEPRINTER | PSD_INHUNDREDTHSOFMILLIMETERS;
            psDlg.lpfnPageSetupHook = (LPPAGESETUPHOOK)(FARPROC)NULL;
            psDlg.lpPageSetupTemplateName = (LPTSTR)NULL;
            psDlg.lpfnPagePaintHook = (LPPAGEPAINTHOOK)(FARPROC)NULL;
            break;

        case IDM_HOOK:
            psDlg.Flags = PSD_DEFAULTMINMARGINS | PSD_ENABLEPAGESETUPHOOK;
            psDlg.lpfnPageSetupHook = (LPPAGESETUPHOOK)(FARPROC)PageSetupHook;
            psDlg.lpPageSetupTemplateName = (LPTSTR)NULL;
            psDlg.lpfnPagePaintHook = (LPPAGEPAINTHOOK)(FARPROC)NULL;
            break;

        case IDM_CUSTOM:
            psDlg.Flags = PSD_DEFAULTMINMARGINS | PSD_ENABLEPAGESETUPHOOK |
            	PSD_ENABLEPAGESETUPTEMPLATE;
            psDlg.lpfnPageSetupHook = (LPPAGESETUPHOOK)(FARPROC)PageSetupHook;
            psDlg.lpPageSetupTemplateName = (LPTSTR)PRNSETUPDLGORD95;
            psDlg.lpfnPagePaintHook = (LPPAGEPAINTHOOK)(FARPROC)NULL;
           break;

    }

    // Call the Page Setup common dialog
    if (PageSetupDlg(&psDlg) == FALSE)
        ProcessCDError(CommDlgExtendedError(), hWnd );
}

/****************************************************************************
*
*    FUNCTION: ReplaceTextHookProc(HWND, UINT, UINT, LONG)
*
*    PURPOSE:  Processes messages for ReplaceText common dialog box
*
*    COMMENTS:
*
*        Puts up a message stating that the hook is active if hook
*        only active.  Otherwise, if template enabled, hides the
*        Replace All pushbutton, plus the 'Match case' and
*        'Match whole word' check box options.
*
*    RETURN VALUES:
*        TRUE - Continue.
*        FALSE - Return to the dialog box.
*
****************************************************************************/

BOOL APIENTRY ReplaceTextHookProc(
        HWND hDlg,                /* window handle of the dialog box */
        UINT message,             /* type of message                 */
        UINT wParam,            /* message-specific information    */
        LONG lParam)
{
    switch (message)
    {
        case WM_INITDIALOG:
            if (frText.Flags & FR_ENABLETEMPLATE )
                {
                    ShowWindow( GetDlgItem(hDlg, psh2), SW_HIDE );
                    ShowWindow( GetDlgItem(hDlg, chx1), SW_HIDE );
                    ShowWindow( GetDlgItem(hDlg, chx2), SW_HIDE );
                }
            MessageBox( hDlg,
                    "Hook installed.",
                    "Information", MB_OK );
            return (TRUE);


        default:
            break;
    }
    return (FALSE);

    // avoid compiler warnings at W3
    lParam;
    wParam;
}

/****************************************************************************
*
*    FUNCTION: FindTextHookProc(HWND, UINT, UINT, LONG)
*
*    PURPOSE:  Processes messages for FindText common dialog box
*
*    COMMENTS:
*
*        Puts up a message stating that the hook is active if hook
*        only enabled.  If custom template, hides the 'Match case'
*        and 'Match whole word' options, hides the group box 'Direction'
*        with the radio buttons 'Up' and 'Down'.
*
*    RETURN VALUES:
*        TRUE - Continue.
*        FALSE - Return to the dialog box.
*
****************************************************************************/

BOOL APIENTRY FindTextHookProc(
        HWND hDlg,                /* window handle of the dialog box */
        UINT message,             /* type of message                 */
        UINT wParam,            /* message-specific information    */
        LONG lParam)
{

    switch (message)
    {
        case WM_INITDIALOG:
            if (frText.Flags & FR_ENABLETEMPLATE )
            {
                ShowWindow(GetDlgItem(hDlg, chx1), SW_HIDE);
                ShowWindow(GetDlgItem(hDlg, grp1), SW_HIDE);
                ShowWindow(GetDlgItem(hDlg, chx2), SW_HIDE);
                ShowWindow(GetDlgItem(hDlg, rad1), SW_HIDE);
                ShowWindow(GetDlgItem(hDlg, rad2), SW_HIDE);
            }
            MessageBox( hDlg,
                    "Hook installed.",
                    "Information", MB_OK );
            return (TRUE);


        default:
            break;
    }
    return (FALSE);

    // avoid compiler warnings at W3
    lParam;
    wParam;
}


/****************************************************************************
*
*    FUNCTION: CallFindText( HWND )
*
*    PURPOSE:  Initializes and calls the FindText()
*        common dialog.
*
*    COMMENTS:
*
*        This function initialzes the FINDREPLACE structure for any mode:
*        standard, using a hook or using a customized template.  It then
*        calls the FindText() common dialog function.
*
*    RETURN VALUES:
*        void.
*
****************************************************************************/
void CallFindText( HWND hWnd )
{

    frText.lStructSize = sizeof( frText );
    frText.hwndOwner = hWnd;
    frText.hInstance = (HANDLE)hInst;
    frText.lpstrFindWhat = szFindString;
    frText.lpstrReplaceWith = (LPTSTR)NULL;
    frText.wFindWhatLen = sizeof(szFindString);
    frText.wReplaceWithLen = 0;
    frText.lCustData = 0;
    lpBufPtr = FileBuf;

    switch( wMode )
    {
        case IDM_STANDARD:
            frText.Flags =  FR_NOMATCHCASE | FR_NOUPDOWN | FR_NOWHOLEWORD;
            frText.lpfnHook = (LPFRHOOKPROC)(FARPROC)NULL;
            frText.lpTemplateName = (LPTSTR)NULL;
            break;

        case IDM_HOOK:
            frText.Flags = FR_NOMATCHCASE | FR_NOUPDOWN | FR_NOWHOLEWORD |
                FR_ENABLEHOOK;
            frText.lpfnHook = (LPFRHOOKPROC)FindTextHookProc;
            frText.lpTemplateName = (LPTSTR)NULL;
            break;

        case IDM_CUSTOM:
            frText.Flags = FR_NOMATCHCASE | FR_NOUPDOWN | FR_NOWHOLEWORD |
                 FR_ENABLEHOOK | FR_ENABLETEMPLATE;
            frText.lpfnHook = (LPFRHOOKPROC)FindTextHookProc;
           	frText.lpTemplateName = (LPTSTR)MAKEINTRESOURCE(FINDDLGORD);
            break;
    }

    if ((hDlgFR = FindText(&frText)) == NULL)
        ProcessCDError(CommDlgExtendedError(), hWnd );

}


/****************************************************************************
*
*    FUNCTION: CallReplaceText( HWND )
*
*    PURPOSE:  Initializes and calls the ReplaceText()
*        common dialog.
*
*    COMMENTS:
*
*        This function initialzes the FINDREPLACE structure for any mode:
*        standard, using a hook or using a customized template.  It then
*        calls the ReplaceText() common dialog function.
*
*    RETURN VALUES:
*        void.
*
****************************************************************************/
void CallReplaceText( HWND hWnd )
{
    frText.lStructSize = sizeof( frText );
    frText.hwndOwner = hWnd;
    frText.hInstance = (HANDLE)hInst;
    frText.lpstrFindWhat = szFindString;
    frText.lpstrReplaceWith = szReplaceString;
    frText.wFindWhatLen = sizeof(szFindString);
    frText.wReplaceWithLen = sizeof( szReplaceString );
    frText.lCustData = 0;
    lpBufPtr = FileBuf;

    switch( wMode )
    {
        case IDM_STANDARD:
            frText.Flags = FR_NOMATCHCASE | FR_NOUPDOWN | FR_NOWHOLEWORD;
            frText.lpfnHook = (LPFRHOOKPROC)(FARPROC)NULL;
            frText.lpTemplateName = (LPTSTR)NULL;
            break;

        case IDM_HOOK:
            frText.Flags = FR_NOMATCHCASE | FR_NOUPDOWN | FR_NOWHOLEWORD |
                FR_ENABLEHOOK;
            frText.lpfnHook = (LPFRHOOKPROC)ReplaceTextHookProc;
            frText.lpTemplateName = (LPTSTR)NULL;
            break;

        case IDM_CUSTOM:
            frText.Flags = FR_NOMATCHCASE | FR_NOUPDOWN | FR_NOWHOLEWORD |
                FR_ENABLEHOOK | FR_ENABLETEMPLATE;
            frText.lpfnHook = (LPFRHOOKPROC)ReplaceTextHookProc;
           	frText.lpTemplateName = (LPTSTR)MAKEINTRESOURCE(REPLACEDLGORD);
            break;
    }

    if ( (hDlgFR = ReplaceText( &frText )) == NULL )
            ProcessCDError(CommDlgExtendedError(), hWnd );

}

/****************************************************************************
*
*    FUNCTION: SearchFile(LPFINDREPLACE)
*
*    PURPOSE:  Does the find/replace specified by the Find/ReplaceText
*        common dialog.
*
*    COMMENTS:
*
*        This function does the least necessary to implement find and
*        replace by calling existing c-runtime functions.  It is in
*        no way intended to demonstrate either correct or efficient
*        methods for doing textual search or replacement.
*
*    RETURN VALUES:
*        void.
*
****************************************************************************/
void SearchFile( LPFINDREPLACE lpFR )
{

    TCHAR Buf[FILE_LEN];
    TCHAR *pStr;
    int count, newcount;
    static BOOL bFoundLast = FALSE;
    
   if ( lpFR->Flags & ( FR_FINDNEXT | FR_REPLACE | FR_REPLACEALL ) )
   {
      if ( bFoundLast )
      {
         if ( (lpBufPtr != FileBuf) && (lpFR->Flags & FR_FINDNEXT) )
            lpBufPtr++;
         bFoundLast = FALSE;
      }

      if (!*lpBufPtr || !(pStr = strstr( lpBufPtr, lpFR->lpstrFindWhat ) ) )
      {
         lpBufPtr = FileBuf;
         MessageBox( lpFR->hwndOwner, lpFR->lpstrFindWhat, TEXT("String not found"), MB_OK );
      }
      else
      {
         if ( lpFR->Flags & FR_FINDNEXT )
         {
            lpBufPtr = pStr;
            bFoundLast = TRUE;
            MessageBox( lpFR->hwndOwner, lpFR->lpstrFindWhat, TEXT("String found!"), MB_OK );
         }
         else if ( lpFR->Flags & FR_REPLACE )
         {
            // replace string specified in the replace with found string
            // copy up to found string into new buffer
            for( count=0; 
               *pStr && lpBufPtr[count] && *pStr != lpBufPtr[count]; 
               count++);
            strncpy( Buf, lpBufPtr, count );
            // concatenate new string
            strcat( Buf, lpFR->lpstrReplaceWith );
            // copy rest of string (less the found string)
            newcount = count + strlen(lpFR->lpstrFindWhat);
            strcat( Buf, lpBufPtr+newcount);
            strcpy( lpBufPtr, Buf );
            lpBufPtr += count + strlen(lpFR->lpstrReplaceWith);
            dwFileSize = strlen(FileBuf);
            MessageBox( lpFR->hwndOwner, FileBuf, "Success!", MB_OK );
         }
         else if ( lpFR->Flags & FR_REPLACEALL)
         {
            do
            {
                // replace string specified in the replace with found string
                // copy up to found string into new buffer
                for( count=0; 
                     *pStr && lpBufPtr[count] && *pStr != lpBufPtr[count]; 
                     count++);
                strncpy( Buf, lpBufPtr, count);
                // concatenate new string
                strcat( Buf, lpFR->lpstrReplaceWith );
                // copy rest of string (less the found string)
                newcount = count + strlen(lpFR->lpstrFindWhat);
                strcat( Buf, lpBufPtr + newcount);
                strcpy( lpBufPtr, Buf );
                lpBufPtr += count + strlen(lpFR->lpstrReplaceWith);
            }
            while ( *lpBufPtr && 
                    (pStr = strstr( lpBufPtr, lpFR->lpstrFindWhat ) ) );
            dwFileSize = strlen(FileBuf);
            lpBufPtr = FileBuf;
            MessageBox( lpFR->hwndOwner, FileBuf, 
                        "Success!", MB_OK );
         }
      }
   }
}


/****************************************************************************
*
*    FUNCTION: ProcessCDError(DWORD)
*
*    PURPOSE:  Processes errors from the common dialog functions.
*
*    COMMENTS:
*
*        This function is called whenever a common dialog function
*        fails.  The CommonDialogExtendedError() value is passed to
*        the function which maps the error value to a string table.
*        The string is loaded and displayed for the user.
*
*    RETURN VALUES:
*        void.
*
****************************************************************************/
void ProcessCDError(DWORD dwErrorCode, HWND hWnd)
{
   WORD  wStringID;
   TCHAR  buf[256];

   switch(dwErrorCode)
      {
         case CDERR_DIALOGFAILURE:   wStringID=IDS_DIALOGFAI

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一区二区免费| 色婷婷久久一区二区三区麻豆| 91精品国产一区二区三区蜜臀| 亚洲第一精品在线| 91精品国产综合久久小美女| 秋霞成人午夜伦在线观看| 欧美成人video| 国产乱人伦偷精品视频不卡| 国产精品网曝门| 欧美综合色免费| 日韩成人av影视| 久久婷婷综合激情| 99re热这里只有精品视频| 亚洲综合在线观看视频| 91精品国产综合久久福利软件 | kk眼镜猥琐国模调教系列一区二区| 国产精品免费丝袜| 欧美午夜在线一二页| 蜜臀av一区二区| 国产精品网站导航| 欧美乱妇15p| 国产福利一区二区| 性感美女极品91精品| 久久这里只有精品视频网| 色婷婷久久99综合精品jk白丝| 日韩精品一级二级| 欧美国产成人在线| 欧美日韩1234| 国产精品888| 婷婷久久综合九色综合伊人色| 久久综合九色综合欧美亚洲| 日本道精品一区二区三区| 男人的j进女人的j一区| 国产精品久久免费看| 欧美精三区欧美精三区| 成人深夜福利app| 美腿丝袜在线亚洲一区| 18欧美亚洲精品| 日韩精品资源二区在线| 欧洲亚洲国产日韩| 成人亚洲精品久久久久软件| 日产国产高清一区二区三区| 亚洲精品免费播放| 久久噜噜亚洲综合| 欧美精品v国产精品v日韩精品| 成人自拍视频在线| 久久国内精品视频| 三级亚洲高清视频| 夜夜揉揉日日人人青青一国产精品| 久久美女高清视频| 日韩午夜在线影院| 欧美日韩三级一区二区| 91视频xxxx| 国产成人精品aa毛片| 另类小说色综合网站| 日韩在线一二三区| 亚洲影院免费观看| 中文av字幕一区| 久久只精品国产| 精品国产1区二区| 这里是久久伊人| 欧美高清视频不卡网| 欧洲一区二区三区在线| 91美女片黄在线观看91美女| caoporen国产精品视频| 成人妖精视频yjsp地址| 国产jizzjizz一区二区| 国产精品69毛片高清亚洲| 国模冰冰炮一区二区| 国产综合色视频| 国产一区二区三区免费在线观看| 日韩电影免费在线观看网站| 丝袜美腿亚洲色图| 日韩激情视频网站| 日日夜夜免费精品视频| 日韩精品一级中文字幕精品视频免费观看 | 欧美三级资源在线| 色网综合在线观看| 91国产视频在线观看| 91视频.com| 在线免费观看成人短视频| 一本大道久久a久久精品综合| 91欧美一区二区| 91国产成人在线| 欧美日韩国产另类不卡| 91精品国产综合久久久蜜臀图片| 日韩一区二区在线观看视频播放| 欧美大片日本大片免费观看| 久久综合九色综合欧美98 | 欧美一区二区三区免费| 日韩欧美激情在线| 久久久天堂av| 成人免费一区二区三区在线观看| 一区二区三区四区蜜桃| 日韩专区欧美专区| 韩日av一区二区| 成人av在线一区二区| 色综合激情久久| 欧美肥大bbwbbw高潮| 精品国产免费久久| 国产精品久久久久久福利一牛影视 | 国产精品一级黄| 亚洲成人7777| 亚洲成人黄色影院| 高清久久久久久| 日韩美女啊v在线免费观看| 国产欧美一区二区精品性| 欧美成人精品3d动漫h| 欧美www视频| 日韩国产欧美在线播放| 中文字幕不卡在线观看| 自拍偷拍亚洲综合| 天堂成人免费av电影一区| 久久精品国产亚洲一区二区三区| 国产91丝袜在线播放0| 欧美亚洲尤物久久| 一区在线中文字幕| 天天操天天综合网| 国产二区国产一区在线观看| 在线观看欧美黄色| 国产日韩欧美不卡| 日韩制服丝袜av| 9人人澡人人爽人人精品| 91精品国产欧美日韩| 国产精品女主播av| 极品美女销魂一区二区三区 | 精品一区二区三区免费视频| 色婷婷综合中文久久一本| 日韩色在线观看| 亚洲精品乱码久久久久久久久| 美女视频免费一区| 欧美图片一区二区三区| 国产精品人妖ts系列视频| 日本视频一区二区三区| 欧美综合在线视频| 综合色中文字幕| 国产麻豆一精品一av一免费| 欧美日韩国产一二三| 国产精品久久久久一区| 国产精品一区二区三区乱码| 日韩欧美一区二区免费| 午夜精品福利一区二区三区蜜桃| 97久久人人超碰| 久久婷婷国产综合国色天香| 日日夜夜一区二区| 欧美日韩和欧美的一区二区| 亚洲欧美日韩系列| 成人精品电影在线观看| 国产日韩精品一区| 精品中文字幕一区二区| 欧美一级精品在线| 男男gaygay亚洲| 欧美男男青年gay1069videost| 亚洲另类春色校园小说| caoporm超碰国产精品| 国产精品理伦片| 国产99久久久精品| 国产日韩欧美一区二区三区综合| 精品在线你懂的| 26uuu亚洲综合色欧美| 麻豆国产精品一区二区三区| 4hu四虎永久在线影院成人| 午夜精品免费在线观看| 欧美色综合影院| 午夜精品福利一区二区三区av | 亚洲天堂网中文字| 99精品桃花视频在线观看| 亚洲国产精品成人综合色在线婷婷 | 亚洲综合在线免费观看| 在线精品亚洲一区二区不卡| 亚洲激情自拍偷拍| 欧洲视频一区二区| 婷婷综合五月天| 日韩一区二区三区观看| 激情av综合网| 日本一区二区三区在线不卡| 成人黄色av网站在线| 尤物视频一区二区| 欧美人与禽zozo性伦| 美女一区二区三区在线观看| 精品国产区一区| 成人精品在线视频观看| 亚洲欧美国产77777| 欧美三级电影一区| 免费的成人av| 欧美激情中文不卡| 91黄色免费网站| 另类小说图片综合网| 国产精品色噜噜| 欧美中文字幕一区| 久久99久久久久| 欧美激情一区二区三区不卡| 色综合久久久网| 看电影不卡的网站| 国产精品拍天天在线| 精品视频在线看| 韩国v欧美v亚洲v日本v| 中文字幕av免费专区久久| 欧美日韩在线观看一区二区| 精品一区二区三区视频|