ANSI preterido APIs
A biblioteca Microsoft Foundation classe (MFC) está migrando para classes e métodos que sejam baseiam o conjunto de caractere Unicode.Conseqüentemente, as versões ANSI do MFC vários métodos são preterido.Use as versões Unicode desses métodos em seus aplicativos futuros.
Iniciando com controles comuns do Windows versão 6.1, que é fornecido no Windows Vista, os seguintes métodos de ANSI estão preterido.
AFX_ANSI_DEPRECATED BOOL GetIdealSize(LPSIZE psize) const;
AFX_ANSI_DEPRECATED BOOL GetImageList(PBUTTON_IMAGELIST pbuttonImagelist) const;
AFX_ANSI_DEPRECATED BOOL GetTextMargin(LPRECT pmargin) const;
AFX_ANSI_DEPRECATED BOOL SetImageList(PBUTTON_IMAGELIST pbuttonImagelist);
AFX_ANSI_DEPRECATED BOOL SetTextMargin(LPRECT pmargin);
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
AFX_ANSI_DEPRECATED BOOL GetCueBanner(LPWSTR lpszText, int cchText) const;
AFX_ANSI_DEPRECATED BOOL SetCueBanner(LPCWSTR lpszText, BOOL fDrawIfFocused = FALSE);
Toda classe está obsoleto.
AFX_ANSI_DEPRECATED void CancelEditLabel();
AFX_ANSI_DEPRECATED int EnableGroupView(BOOL fEnable);
AFX_ANSI_DEPRECATED int GetGroupInfo(int iGroupId, PLVGROUP pgrp) const;
AFX_ANSI_DEPRECATED void GetGroupMetrics(PLVGROUPMETRICS pGroupMetrics) const;
AFX_ANSI_DEPRECATED BOOL GetInsertMark(LPLVINSERTMARK lvim) const;
AFX_ANSI_DEPRECATED COLORREF GetInsertMarkColor() const;
AFX_ANSI_DEPRECATED int GetInsertMarkRect(LPRECT pRect) const;
AFX_ANSI_DEPRECATED COLORREF GetOutlineColor() const;
AFX_ANSI_DEPRECATED UINT GetSelectedColumn() const;
AFX_ANSI_DEPRECATED BOOL GetTileInfo(PLVTILEINFO pti) const;
AFX_ANSI_DEPRECATED BOOL GetTileViewInfo(PLVTILEVIEWINFO ptvi) const;
AFX_ANSI_DEPRECATED DWORD GetView() const;
AFX_ANSI_DEPRECATED BOOL HasGroup(int iGroupId) const;
AFX_ANSI_DEPRECATED int InsertGroup(int index, PLVGROUP pgrp);
AFX_ANSI_DEPRECATED void InsertGroupSorted(PLVINSERTGROUPSORTED pStructInsert);
AFX_ANSI_DEPRECATED int InsertMarkHitTest(LPPOINT pPoint, LPLVINSERTMARK lvim) const;
AFX_ANSI_DEPRECATED BOOL IsGroupViewEnabled() const;
AFX_ANSI_DEPRECATED void MoveGroup(int iGroupId, int toIndex);
AFX_ANSI_DEPRECATED void MoveItemToGroup(int idItemFrom, int idGroupTo);
AFX_ANSI_DEPRECATED void RemoveAllGroups();
AFX_ANSI_DEPRECATED int RemoveGroup(int iGroupId);
AFX_ANSI_DEPRECATED BOOL SetGroupInfo(int iGroupId, PLVGROUP pGroup);
AFX_ANSI_DEPRECATED void SetGroupMetrics(PLVGROUPMETRICS pGroupMetrics);
AFX_ANSI_DEPRECATED BOOL SetInfoTip(PLVSETINFOTIP plvInfoTip);
AFX_ANSI_DEPRECATED BOOL SetInsertMark(LPLVINSERTMARK lvim);
AFX_ANSI_DEPRECATED COLORREF SetInsertMarkColor(COLORREF color);
AFX_ANSI_DEPRECATED COLORREF SetOutlineColor(COLORREF color);
AFX_ANSI_DEPRECATED void SetSelectedColumn(int iCol);
AFX_ANSI_DEPRECATED BOOL SetTileInfo(PLVTILEINFO pti);
AFX_ANSI_DEPRECATED BOOL SetTileViewInfo(PLVTILEVIEWINFO ptvi);
AFX_ANSI_DEPRECATED DWORD SetView(int iView);
AFX_ANSI_DEPRECATED BOOL SortGroups(PFNLVGROUPCOMPARE _pfnGroupCompare, LPVOID _plv);
AFX_ANSI_DEPRECATED void GetBandMargins(PMARGINS pMargins) const;
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
AFX_ANSI_DEPRECATED void GetMetrics(LPTBMETRICS ptbm) const;
AFX_ANSI_DEPRECATED void SetMetrics(LPTBMETRICS ptbm);
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
compilação Requisitos para controles comuns do Windows Vista