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

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

?? gizmoapi.c

?? 英文版的 想要的話可以下載了 為大家服務
?? C
?? 第 1 頁 / 共 2 頁
字號:
 * Return Value:
 *  BOOL            TRUE if the function was successful, FALSE
 *                  otherwise.
 */

BOOL WINAPI GBGizmoShow(HWND hWnd, UINT uID, BOOL fShow)
    {
    BOOL        fRet=FALSE;
    PGIZMO      pGizmo;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo)
        {
        if (fShow && pGizmo->fHidden)
            {
            if (NULL!=pGizmo->hWnd)
                ShowWindow(pGizmo->hWnd, SW_SHOWNORMAL);

            GizmosExpand(pGizmo);
            }

        if (!fShow && !pGizmo->fHidden)
            {
            if (NULL!=pGizmo->hWnd)
                ShowWindow(pGizmo->hWnd, SW_HIDE);

            GizmosCompact(pGizmo);
            }

        //This will be right even if we didn't change anything.
        pGizmo->fHidden=!fShow;
        }

    InvalidateRect(hWnd, NULL, TRUE);
    UpdateWindow(hWnd);
    return fRet;
    }






/*
 * GBGizmoEnable
 *
 * Purpose:
 *  Enables or disables a control on the GizmoBar.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier of the gizmo to affect.
 *  fEnable         BOOL TRUE to enable the gizmo, FALSE otherwise.
 *
 * Return Value:
 *  BOOL            TRUE if the gizmo was previously disabled, FALSE
 *                  otherwise.
 */

BOOL WINAPI GBGizmoEnable(HWND hWnd, UINT uID, BOOL fEnable)
    {
    PGIZMO      pGizmo;
    BOOL        fRet=FALSE;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL==pGizmo)
        return FALSE;

    fRet=(BOOL)(BUTTONGROUP_DISABLED & pGizmo->uState);

    //Use windows to enable or disable window gizmos
    if (NULL!=pGizmo->hWnd)
        EnableWindow(pGizmo->hWnd, fEnable);
    else
        {
        /*
         * If we're not down, command and attribute buttons act
         * the same.
         */
        if (!(BUTTONGROUP_DOWN & pGizmo->uState))
            {
            GizmoPStateSet(hWnd, pGizmo, fEnable
                ? COMMANDBUTTON_UP : COMMANDBUTTON_DISABLED);
            }
        else
            {
            /*
             * Attribute buttons are a little more sensitive with
             * DOWNDISABLED
             */
            GizmoPStateSet(hWnd, pGizmo, fEnable
                ? ATTRIBUTEBUTTON_DOWN
                : ATTRIBUTEBUTTON_DOWNDISABLED);
            }
        }

    return fRet;
    }







/*
 * GBGizmoCheck
 *
 * Purpose:
 *  Checks or unchecks an attribute button in the GizmoBar.  If the
 *  gizmo is part of a group of mutually exclusive attributes, then
 *  other gizmos are unchecked when this one is checked.  If this is
 *  the only one checked in these circumstances, this function is a
 *  NOP.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier of the gizmo to affect.
 *  fCheck          BOOL TRUE to check this gizmo, FALSE to uncheck.
 *
 * Return Value:
 *  BOOL            TRUE if the change took place.  FALSE otherwise.
 */

BOOL WINAPI GBGizmoCheck(HWND hWnd, UINT uID, BOOL fCheck)
    {
    PGIZMOBAR   pGB;
    PGIZMO      pGizmo;

    if (!IsWindow(hWnd))
        return FALSE;

    pGB=(PGIZMOBAR)GetWindowLong(hWnd, GBWL_STRUCTURE);

    if (NULL==pGB)
        return FALSE;

    pGizmo=GizmoPFind(&pGB->pGizmos, uID);

    if (NULL!=pGizmo)
        GizmoPCheck(hWnd, pGizmo, fCheck);

    return TRUE;
    }






/*
 * GBGizmoFocusSet
 *
 * Purpose:
 *  Sets the focus to a partuclar gizmo in the gizmo if that gizmo
 *  can accept the focus.  Separators, attribute buttons, text,
 *  and command buttons cannot have the focus.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier of the gizmo to affect.
 *
 * Return Value:
 *  BOOL            TRUE if the focus was set.  FALSE otherwise,
 *                  such as when uID identifies a control that cannot
 *                  have focus.
 */

UINT WINAPI GBGizmoFocusSet(HWND hWnd, UINT uID)
    {
    PGIZMO      pGizmo;
    BOOL        fRet=FALSE;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo && NULL!=pGizmo->hWnd)
        {
        fRet=TRUE;
        SetFocus(pGizmo->hWnd);
        }

    return fRet;
    }





/*
 * GBGizmoExist
 *
 * Purpose:
 *  Determines if a gizmo of a given identifier exists in the
 *  GizmoBar.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier to verify.
 *
 * Return Value:
 *  BOOL            TRUE if the gizmo exists, FALSE otherwise.
 */

BOOL WINAPI GBGizmoExist(HWND hWnd, UINT uID)
    {
    return (NULL!=PGizmoFromHwndID(hWnd, uID));
    }





/*
 * GBGizmoTypeGet
 *
 * Purpose:
 *  Returns the type of the gizmo specified by the given identifer.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier to find.
 *
 * Return Value:
 *  int             A GIZMOTYPE_* value if the function is
 *                  successful, otherwise -1.
 */

int WINAPI GBGizmoTypeGet(HWND hWnd, UINT uID)
    {
    int         iRet=-1;
    PGIZMO      pGizmo;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo)
        iRet=pGizmo->iType;

    return iRet;
    }





/*
 * GBGizmoDataSet
 * GBGizmoDataGet
 *
 * Purpose:
 *  Sets or retrieves an extra DWORD value associated with the given
 *  gizmo.  Applications can store any information here they please.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier of the gizmo.
 *  dwData          (Set only) DWORD data to store with the gizmo.
 *
 * Return Value:
 *  DWORD           Set:  Previous value
 *                  Get:  Current value
 */

DWORD WINAPI GBGizmoDataSet(HWND hWnd, UINT uID, DWORD dwData)
    {
    PGIZMO      pGizmo;
    DWORD       dw=0L;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo)
        {
        dw=pGizmo->dwData;
        pGizmo->dwData=dwData;
        }

    return dw;
    }



DWORD WINAPI GBGizmoDataGet(HWND hWnd, UINT uID)
    {
    PGIZMO      pGizmo;
    DWORD       dw=0L;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo)
        dw=pGizmo->dwData;

    return dw;
    }






/*
 * GBGizmoNotifySet
 * GBGizmoNotifyGet
 *
 * Purpose:
 *  Sets or retrieves the notify status of a gizmo.  If notify is
 *  FALSE, the no WM_COMMAND messages are sent from the GizmoBar to
 *  the parent window when this gizmo is used.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifier of the gizmo.
 *  fNotify         (Set only) BOOL new notify status to set.
 *
 * Return Value:
 *  BOOL            Set:  Previous value of the notify flag.
 *                  Get:  Current value of the notify flag.
 */

BOOL WINAPI GBGizmoNotifySet(HWND hWnd, UINT uID, BOOL fNotify)
    {
    PGIZMO      pGizmo;
    BOOL        fRet=FALSE;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo)
        {
        fRet=pGizmo->fNotify;
        pGizmo->fNotify=fNotify;
        }

    return fRet;
    }


BOOL WINAPI GBGizmoNotifyGet(HWND hWnd, UINT uID)
    {
    PGIZMO      pGizmo;
    BOOL        fRet=FALSE;

    pGizmo=PGizmoFromHwndID(hWnd, uID);

    if (NULL!=pGizmo)
        fRet=pGizmo->fNotify;

    return fRet;
    }







/*
 * GBGizmoTextSet
 * GBGizmoTextGet
 *
 * Purpose:
 *  Retrieves or sets text in a GizmoBar gizmo.  Separators, command
 *  buttons, and attribute buttons are not affected by this call.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifying the gizmo.
 *  psz             LPTSTR (Set) providing the text to show in the
 *                  window or (Get) pointing to a buffer to receive
 *                  the text.
 *  cch             (Get only) UINT maximum number of chars to copy
 *                  to psz.
 *
 * Return Value:
 *  int             Number of characters copied to psz.
 */

void WINAPI GBGizmoTextSet(HWND hWnd, UINT uID, LPTSTR psz)
    {
    //This fails on non-windowed gizmos anyway, so we don't check.
    SetDlgItemText(hWnd, uID, psz);
    return;
    }


int WINAPI GBGizmoTextGet(HWND hWnd, UINT uID, LPTSTR psz, UINT cch)
    {
    //This fails on non-windowed gizmos anyway, so we don't check.
    return GetDlgItemText(hWnd, uID, psz, cch);
    }








/*
 * GBGizmoIntSet
 * GBGizmoIntGet
 *
 * Purpose:
 *  Retrieves or sets an integer in a GizmoBar gizmo.  Separators,
 *  command buttons, and attribute buttons are not affected by this
 *  call.
 *
 * Parameters:
 *  hWnd            HWND of the GizmoBar.
 *  uID             UINT identifying the gizmo.
 *
 *  (Set only)
 *  u               UINT value to set in the gizmo.
 *  fSigned         BOOL TRUE to indicate if the value is signed.
 *
 *  (Get only)
 *  pfTrans         BOOL FAR * in which the success of the function
 *                  is returned.
 *  fSigned         BOOL TRUE to indicate if the value is signed.
 *
 * Return Value:
 *  (Set): None
 *  (Get): UINT     Integer translation of the gizmo's text.
 */

void WINAPI GBGizmoIntSet(HWND hWnd, UINT uID, UINT u, BOOL fSigned)
    {
    //This fails on non-windowed gizmos anyway, so we don't check.
    SetDlgItemInt(hWnd, uID, u, fSigned);
    return;
    }



UINT WINAPI GBGizmoIntGet(HWND hWnd, UINT uID, BOOL FAR *pfTrans
    , BOOL fSigned)
    {
    //This fails on non-windowed gizmos anyway, so we don't check.
    return GetDlgItemInt(hWnd, uID, pfTrans, fSigned);
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费看欧美美女黄的网站| 91黄色免费观看| 欧美一级高清片在线观看| 亚洲精品视频在线观看免费| 日韩和欧美一区二区| 欧美一区二区三区在线观看| 久久久久国产精品人| 精品一区二区三区免费毛片爱| 欧美久久久久久蜜桃| 亚洲综合色成人| 欧美日韩一区二区在线观看视频| 国产精品国产馆在线真实露脸 | 色999日韩国产欧美一区二区| 国产精品久久久久久福利一牛影视 | 成人精品一区二区三区四区| 久久亚洲综合色一区二区三区| 久久99精品国产麻豆婷婷| 日韩区在线观看| 国产精品99久久久久久久女警 | 91麻豆视频网站| 一区二区三区中文字幕| 在线不卡一区二区| 豆国产96在线|亚洲| 亚洲欧美综合另类在线卡通| 91国内精品野花午夜精品| 日本网站在线观看一区二区三区| 精品国产区一区| 99国产欧美另类久久久精品| 亚洲一区在线观看网站| 精品黑人一区二区三区久久| 99riav久久精品riav| 毛片一区二区三区| 亚洲午夜久久久久| 国产日产欧产精品推荐色| 色婷婷综合久久| 国产99精品视频| 日韩不卡一区二区三区| 亚洲美女电影在线| 日本一区二区三区国色天香| 日韩你懂的电影在线观看| 久久久高清一区二区三区| 激情av综合网| 视频一区欧美精品| 一区二区三区久久久| 国产精品免费视频网站| 欧美一区二区三区在| 欧美午夜不卡在线观看免费| 国产精品影视网| 麻豆91小视频| 蜜臀va亚洲va欧美va天堂| 亚洲 欧美综合在线网络| 亚洲精品成人少妇| 亚洲国产成人av| 一区二区三区在线播放| 亚洲美腿欧美偷拍| 亚洲天堂精品在线观看| 国产精品美女久久久久久久久久久| 精品日韩av一区二区| 精品日韩欧美在线| 久久这里只有精品6| 国产日产欧美精品一区二区三区| 久久精品水蜜桃av综合天堂| 国产欧美一区二区三区网站| 国产精品乱码妇女bbbb| 亚洲乱码一区二区三区在线观看| 亚洲精品日产精品乱码不卡| 美女看a上一区| 国产一区二区福利| av一区二区三区四区| 成人精品视频.| 欧美亚洲高清一区二区三区不卡| 欧美日韩高清一区二区不卡| 精品久久一区二区| 最新国产の精品合集bt伙计| 亚洲第一福利一区| 国产不卡一区视频| 欧美人狂配大交3d怪物一区| 亚洲欧洲性图库| 久久久另类综合| 亚洲精品在线电影| 亚洲天堂免费在线观看视频| 亚洲成a人片综合在线| 国产老女人精品毛片久久| 色网站国产精品| 国产欧美一区二区精品性| 亚洲最色的网站| 成人一区二区三区中文字幕| 欧美色图12p| 国产精品久久久久婷婷| 国模套图日韩精品一区二区| 欧美亚洲禁片免费| 中文字幕一区视频| 国产酒店精品激情| 精品国产一区二区三区忘忧草| 国产精品传媒入口麻豆| 亚洲少妇中出一区| 亚洲国产精品一区二区www| 9i在线看片成人免费| 久久综合视频网| 精品一区二区影视| 欧美成人猛片aaaaaaa| 爽爽淫人综合网网站| 欧美亚洲综合网| 亚洲线精品一区二区三区 | 天天免费综合色| 欧美日韩午夜影院| 视频在线观看一区二区三区| 色一情一乱一乱一91av| 一区二区三区日韩精品视频| 色又黄又爽网站www久久| 亚洲一区二区精品视频| 国产成人综合网站| 91福利国产成人精品照片| 中文字幕中文字幕中文字幕亚洲无线| 狠狠色狠狠色综合日日91app| 精品国产露脸精彩对白| 国产成人精品在线看| ...av二区三区久久精品| 在线精品视频一区二区三四| 樱桃视频在线观看一区| 欧美成人性福生活免费看| 国产乱码精品一区二区三 | 日韩一区二区三区免费看 | 亚洲免费在线观看视频| 欧美精品aⅴ在线视频| 琪琪久久久久日韩精品| 精品剧情v国产在线观看在线| eeuss鲁一区二区三区| 婷婷丁香久久五月婷婷| 国产精品青草综合久久久久99| 欧美午夜精品一区| 成人一区二区三区视频| 午夜精品影院在线观看| 自拍偷自拍亚洲精品播放| 91.xcao| 99视频有精品| 亚洲3atv精品一区二区三区| 日韩免费看网站| 欧美在线观看视频一区二区| 国产在线国偷精品产拍免费yy| 亚洲一二三四久久| 国产精品天美传媒沈樵| 欧美成人高清电影在线| 欧美日韩国产综合视频在线观看 | 91麻豆精品国产91久久久 | 欧美视频一区二区| 丁香五精品蜜臀久久久久99网站 | 日韩欧美美女一区二区三区| 成人影视亚洲图片在线| 国产精品一区在线| 麻豆精品久久久| 久久国产剧场电影| 捆绑调教美女网站视频一区| 免费人成精品欧美精品| 日韩激情视频网站| 日本不卡高清视频| 久久av资源网| 国产成人aaaa| 91福利视频在线| 欧美日韩精品福利| 日韩欧美一级特黄在线播放| 日韩午夜激情av| 欧美精品一区二区三区蜜桃视频 | 成人福利视频在线看| 91一区在线观看| 日本韩国视频一区二区| 欧美老女人在线| 欧美激情自拍偷拍| 亚洲国产一二三| 久久99在线观看| 国产剧情在线观看一区二区| 国产激情偷乱视频一区二区三区| 亚洲一线二线三线视频| 亚洲人吸女人奶水| 久久精品av麻豆的观看方式| 国产精品羞羞答答xxdd| 欧美丝袜丝交足nylons图片| 日韩免费电影一区| 亚洲黄色小视频| 国产成人亚洲综合a∨婷婷图片| 日本国产一区二区| 日韩欧美电影在线| 欧美日韩一区成人| 欧美丝袜丝nylons| 国产精品素人一区二区| 三级亚洲高清视频| 日本精品免费观看高清观看| 久久蜜桃一区二区| 日本在线观看不卡视频| 一本在线高清不卡dvd| 精品国产免费人成电影在线观看四季| 亚洲午夜久久久久久久久电影网 | 久久久久久免费网| 午夜成人免费视频| 91久久久免费一区二区| 中文字幕av一区二区三区| 国产综合色视频| 久久综合久久鬼色中文字| 婷婷丁香激情综合| 日韩欧美色综合|