⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calleriddisplayitem.hpp

📁 一个WinCE6。0下的IP phone的源代码
💻 HPP
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//

#pragma once

#ifndef __CALLERIDDISPLAYITEM_HPP__
#define __CALLERIDDISPLAYITEM_HPP__

#include "DisplayItem.hpp"
#include "string.hxx"

/*------------------------------------------------------------------------------
    CCallerIDDisplayItem
    
    Implements a display item that contains a phone number and corresponding 
------------------------------------------------------------------------------*/
class CCallerIDDisplayItem_t : 
    public CVoIPDisplayItem
{
public:
    // Construction/destruction
    CCallerIDDisplayItem_t(
        const WCHAR *c_wszNumber, 
        UINT  cchNumber = -1
        );

   ~CCallerIDDisplayItem_t();
   
public:
    // Overrides
    __override HRESULT 
    Draw(
        HDC hdc, 
        const RECT *prc, 
        BOOL fSelected, 
        BOOL fTopItem = FALSE
        );

    HRESULT 
    GetSubItemText(
        UINT idxSubItem, 
        WCHAR * wszText, 
        UINT cchText
        );

    __override HRESULT 
    GetText(
        WCHAR * wszText, 
        INT cchText
        );
    
    __override BOOL 
    GetHeight(
        UINT * pfHeight
        );
    
private:
    static const UINT sc_idxNumber;
    static const UINT sc_idxCallerID;

    ce::wstring   m_wstrCallerId;
    ce::wstring   m_wstrNumber;          
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -