mirror of
https://github.com/quantum5/Zalgo.git
synced 2025-04-24 21:52:03 -04:00
Also: 1. Cleaned up text handling by storing them in resource. 2. Added useful methods to make code look better. 3. Allowed PreviewWindow to be used for general text displaying. Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
11 lines
313 B
C
11 lines
313 B
C
#define RID_ICON 1
|
|
#define RID_XSAMPA 2
|
|
#define RID_INIT 3
|
|
#define RID_LOOSE 4
|
|
|
|
inline void GetMessageFont(LOGFONT &lf) {
|
|
NONCLIENTMETRICS ncmMetrics = { sizeof(NONCLIENTMETRICS) };
|
|
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncmMetrics, 0);
|
|
memcpy(&lf, &ncmMetrics.lfMessageFont, sizeof lf);
|
|
}
|