共用方式為


CWindow::IsWindowUnicode

Determines whether the specified window is a native Unicode window.

BOOL IsWindowUnicode( ) throw();

Remarks

See IsWindowUnicode in the Windows SDK.

Example

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::IsWindowUnicode() to determine if the window is a 
//UNICODE window or an ANSI one.

CWindow myWindow;
myWindow.Attach(hWnd);
BOOL bUnicode = myWindow.IsWindowUnicode();

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::IsWindow

CWindow::IsWindowEnabled

CWindow::IsWindowVisible

Other Resources

CWindow Members