ANSI substituído APIs
A biblioteca Microsoft Foundation Class (MFC) está migrando para classes e métodos que sejam baseiam no conjunto de caracteres Unicode.Conseqüentemente, as versões ANSI de vários métodos MFC estão obsoletas.Use as versões Unicode desses métodos em seus aplicativos futuros.
Começando com a versão de controles comuns do Windows 6.1, que vem em Windows Vista, os seguintes métodos de ANSI estão obsoletas.
Classe CButton
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);
Classe CComboBoxEx
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
Classe CEdit
AFX_ANSI_DEPRECATED BOOL GetCueBanner(LPWSTR lpszText, int cchText) const;
AFX_ANSI_DEPRECATED BOOL SetCueBanner(LPCWSTR lpszText, BOOL fDrawIfFocused = FALSE);
Classe CLinkCtrl
A classe inteira é preterida.
Classe CListCtrl
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);
Classe CReBarCtrl
AFX_ANSI_DEPRECATED void GetBandMargins(PMARGINS pMargins) const;
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
Classe CToolBarCtrl
AFX_ANSI_DEPRECATED void GetMetrics(LPTBMETRICS ptbm) const;
AFX_ANSI_DEPRECATED void SetMetrics(LPTBMETRICS ptbm);
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);
Classe CToolTipCtrl
AFX_ANSI_DEPRECATED HRESULT SetWindowTheme(LPCWSTR pszSubAppName);