在Windows Platform SDK Documentation中CreateWindow()的函数原型如下:
HWND CreateWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent,
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
);
其中形参
nWidth表述为Specifies the width, in device units, of the window.
nHeight表述为Specifies the height, in device units, of the window.
这里的device units指的是象素吗?
是不是设备坐标指的就是以象素为单位的坐标?
谢谢!
HWND CreateWindow(
LPCTSTR lpClassName,
LPCTSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent,
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
);
其中形参
nWidth表述为Specifies the width, in device units, of the window.
nHeight表述为Specifies the height, in device units, of the window.
这里的device units指的是象素吗?
是不是设备坐标指的就是以象素为单位的坐标?
谢谢!
In all device coordinate systems, units are expressed in terms of pixels. Values on the horizontal x-axis increase from left to right, and values on the vertical y-axis increase from top to bottom.