CHOOSEFONT ±¸Á¶¿¡ ChooseFont ÇÔ¼ö »ç¿ë ÇÏ ¿© ±Û²Ã ÀÏ¹Ý ´ëÈ »óÀÚ ÃʱâÈ Á¤º¸°¡ ÀÖ½À´Ï´Ù. ½Ã½ºÅÛ »ç¿ëÀÚ ´ëÈ »óÀÚ¸¦ ´Ý½À´Ï´Ù ÈÄÀÌ ±¸Á¶¿¡¼ »ç¿ëÀÚÀÇ ¼±Åÿ¡ ´ë ÇÑ Á¤º¸¸¦ ¹Ýȯ ÇÕ´Ï´Ù.
typedef struct {/ / cf DWORD lStructSize;
HWND hwndOwner;
HDC hDC;
LPLOGFONT lpLogFont;
INT iPointSize;
DWORD Ç÷¡±×;
DWORD rgbColors;
LPARAM lCustData;
LPCFHOOKPROC lpfnHook;
LPCTSTR lpTemplateName;
HINSTANCE hInstance;
LPTSTR lpszStyle;
WORD nFontType;
WORD ___MISSING_ALIGNMENT__;
INT nSizeMin;
INT nSizeMax;
} CHOOSEFONT
Ç÷¡±× | ÀÇ¹Ì |
---|---|
CF_APPLY | Àû¿ë ´ÜÃ߸¦ Ç¥½Ã ÇÏ·Á¸é ´ëÈ »óÀÚ¸¦ ¹ß»ý ÇÕ´Ï´Ù. Àû¿ë ´ÜÃß¿¡ ´ë ÇÑ ÇÁ·Î¼¼½º WM_COMMAND ¸Þ½ÃÁö¸¦ ÈÄÅ© ÇÁ·Î½ÃÀú¸¦ Á¦°ø ÇØ¾ß ÇÕ´Ï´Ù. ÈÄÅ© ÇÁ·Î½ÃÀúÀÇ ÁÖ¼Ò¸¦ °Ë»ö ÇÏ ¿© ´ëÈ »óÀÚ¸¦ WM_CHOOSEFONT_GETLOGFONT ¸Þ½ÃÁö¸¦ º¸³¾ ¼ö ÀÖ´Â ±Û²Ã¿¡ ´ë ÇÑ ÇöÀç ¼±Åà ¿µ¿ªÀ» Æ÷ÇÔ ÇÏ´Â LOGFONT ±¸Á¶. |
CF_ANSIONLY | ÀÌ Ç÷¡±×´Â »ç¿ë µÇÁö ¾Ê½À´Ï´Ù. CF_SCRIPTSONLY¸¦ »ç¿ë ÇÏ ¿© OEM ¹× ±âÈ£ ¹®ÀÚ ÁýÇÕÀ» »ç¿ë ÇÏ´Â Á¦¿Ü ÇÏ °í ¸ðµç ½ºÅ©¸³Æ®¿¡ ±Û²Ã ¼±Åà Á¦ÇÑ. Windows 3.1 CF_ANSIONLY µ¿ÀÛÀ» ¾òÀ¸·Á¸é, CF_SELECTSCRIPT¸¦ »ç¿ë ÇÏ °í ANSI_CHARSET lpLogFont ¿¡ ÀÇÇØ °¡¸®Å°´Â LOGFONT ±¸Á¶Ã¼ÀÇ lfCharSet ±¸¼º¿ø ÁöÁ¤. |
CF_BOTH | »ç¿ë °¡´ÉÇÑ ÇÁ¸°ÅÍ ±Û²Ã°ú È¸é ±Û²Ã ¸ñ·Ï ´ëÈ »óÀÚ¸¦ ¹ß»ý ÇÕ´Ï´Ù. ÀåÄ¡ ÄÁÅؽºÆ® (¶Ç´Â Á¤º¸ ÄÁÅؽºÆ®) ÇÁ¸°ÅÍ¿Í °ü·Ã µÈ hDC ±¸¼º¿øÀ» ½Äº° ÇÕ´Ï´Ù. ÀÌ Ç÷¡±×´Â CF_SCREENFONTS ¹× CF_PRINTERFONTS Ç÷¡±×ÀÇ Á¶ÇÕ. |
CF_TTONLY | ChooseFont Çؾ߸¸ ¿°Å ÇÏ °í Æ®·çŸÀÔ ±Û²Ã ¼±Åà Çã¿ë ÁöÁ¤. |
CF_EFFECTS | Ãë¼Ò¼±, ¹ØÁÙ ¹× ÅؽºÆ® »ö ¿É¼ÇÀ» ÁöÁ¤ ÇÏ·Á¸é »ç¿ëÀÚ ÄÁÆ®·ÑÀ» Ç¥½Ã ÇÏ·Á¸é ´ëÈ »óÀÚ¸¦ ¹ß»ý ÇÕ´Ï´Ù. ÀÌ Ç÷¡±×°¡ ¼³Á¤ µÇ ¸é Ãʱâ ÅؽºÆ® »öÀ» ÁöÁ¤ ÇÏ·Á¸é rgbColors ¸â¹ö¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. LfStrikeOut ¹× lfUnderline ¸â¹ö¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Â LOGFONT ±¸Á¶ lpLogFont Ãë¼Ò¼± ¹× ¹ØÁÙ È®ÀζõÀÇ Ãʱ⠼³Á¤À» ÁöÁ¤ ÇÏ ¿© ÁöÀû ÇÕ´Ï´Ù. ChooseFont ÀÌ·¯ÇÑ ¸â¹ö¸¦ »ç¿ë ÇÏ ¿© »ç¿ëÀÚÀÇ ¼±Åà ¿µ¿ªÀ» ¹Ýȯ ¼ö ÀÖ½À´Ï´Ù. |
CF_ENABLEHOOK | ÀÌ ±¸Á¶Ã¼ÀÇ lpfnHook ¸â¹ö¿¡ ÁöÁ¤ µÈ ÈÄÅ© ÇÁ·Î½ÃÀú¸¦ »ç¿ë Çϸé. |
CF_ENABLETEMPLATE | HInstance ¹× lpTemplateName ¸â¹ö ÁöÁ¤ ±âº» ¼½Ä ÆÄÀÏ ´ë½Å »ç¿ë ÇÏ ¿© ´ëÈ »óÀÚ ÅÛÇø´À» ³ªÅ¸³À´Ï´Ù. |
CF_ENABLETEMPLATEHANDLE | HInstance ȸ¿ø ½Äº° ·Îµå ´ëÈ »óÀÚ ÅÛÇø´À» Æ÷ÇÔ ÇÏ´Â µ¥ÀÌÅÍ ºí·ÏÀ» ³ªÅ¸³À´Ï´Ù. ÀÌ Ç÷¡±×¸¦ ÁöÁ¤ ÇÏ´Â °æ¿ì lpTemplateName ¸â¹ö¸¦ ¹«½Ã ÇÏ´Â ½Ã½ºÅÛ. |
CF_FIXEDPITCHONLY | ChooseFont ¸¸ °íÁ¤ ÇÇÄ¡ ±Û²ÃÀ» ¼±Åà ÇØ¾ß ÁöÁ¤ ÇÕ´Ï´Ù. |
CF_FORCEFONTEXIST | ChooseFont »ç¿ëÀÚ°¡ ±Û²Ã ¶Ç´Â Á¸Àç ÇÏÁö ¾Ê´Â ½ºÅ¸ÀÏÀ» ¼±Åà ÇÏ·Á°í ÇÏ´Â °æ¿ì ¿À·ù »óŸ¦ ³ªÅ¸³»´Â ÇØ¾ß ÁöÁ¤ ÇÕ´Ï´Ù. |
CF_INITTOLOGFONTSTRUCT | ChooseFont »ç¿ë Çϵµ·Ï ÁöÁ¤ µÈ LOGFONT ±¸Á¶¸¦ ´ëÈ »óÀÚ ÄÁÆ®·ÑÀ» ÃʱâÈ ÇÏ·Á¸é lpLogFont ±¸¼º¿ø¿¡ ÀÇÇØ ÁöÀû. |
CF_LIMITSIZE | ChooseFont nSizeMin ¹× nSizeMax ¸â¹ö¿¡ ÀÇÇØ ÁöÁ¤ µÈ ¹üÀ§ ³»¿¡¼ ±Û²Ã Å©±â¸¦ ¼±Åà ÇØ¾ß ÇÏ´Â ÁöÁ¤ ÇÕ´Ï´Ù. |
CF_NOOEMFONTS | CF_NOVECTORFONTS Ç÷¡±×¿Í µ¿ÀÏ. |
CF_NOFACESEL | LOGFONT ±¸Á¶¸¦ »ç¿ë ÇÏ ¿© ´ëÈ »óÀÚ ÄÁÆ®·Ñ Ãʱâȸ¦ ÇÏ´Â °æ¿ìÀÌ Ç÷¡±×¸¦ »ç¿ë ÇÏ ¿© ¼±ÅÃÀûÀ¸·Î Ç¥½Ã µÇÁö ¾Êµµ·Ï ÇÏ·Á¸é ´ëÈ »óÀÚ ±Û²Ã À̸§ ÄÞº¸ »óÀÚ¿¡ ´ë ÇÑ Ãʱ⠼±Åà ÇÕ´Ï´Ù. ÅؽºÆ® ¼±Åà ¿µ¿ª¿¡ Àû¿ë µÇ´Â ´ÜÀÏ ±Û²Ã À̸§ÀÌ ¾ø´Â °æ¿ì¿¡ À¯¿ë. |
CF_NOSCRIPTSEL | ½ºÅ©¸³Æ® ÄÞº¸ »óÀÚ¸¦ ºñÈ°¼ºÈÇÕ´Ï´Ù. ÀÌ Ç÷¡±×°¡ ¼³Á¤ µÇ¾îÀÇ lfCharSet ±¸¼º¿øÀº ChooseFont ¹Ýȯ µÉ ¶§ DEFAULT_CHARSET·Î LOGFONT ±¸Á¶¸¦ ¼³Á¤ ÇÕ´Ï´Ù. ÀÌ Ç÷¡±×´Â ÃʱâÈ ´ëÈ »óÀÚ¿¡¸¸ »ç¿ë. |
CF_NOSTYLESEL | LOGFONT ±¸Á¶¸¦ »ç¿ë ÇÏ ¿© ´ëÈ »óÀÚ ÄÁÆ®·Ñ Ãʱâȸ¦ ÇÏ´Â °æ¿ìÀÌ Ç÷¡±×¸¦ »ç¿ë ÇÏ ¿© ¼±ÅÃÀûÀ¸·Î Ç¥½Ã µÇÁö ¾Êµµ·Ï ÇÏ·Á¸é ´ëÈ »óÀÚ ±Û²Ã ½ºÅ¸ÀÏ ÄÞº¸ »óÀÚ¿¡ ´ë ÇÑ Ãʱ⠼±Åà ÇÕ´Ï´Ù. ÅؽºÆ® ¼±Åà ¿µ¿ª¿¡ Àû¿ë µÇ´Â ´ÜÀÏ ±Û²Ã ½ºÅ¸ÀÏÀÌ ¾ø´Â °æ¿ì À¯¿ë. |
CF_NOSIZESEL | »ç¿ë ÇÏ´Â °æ¿ì´Â ´ëÈ »óÀÚ ÄÁÆ®·ÑÀ» ÃʱâÈ ÇÏ·Á¸é LOGFONT ±¸Á¶¿¡¼ÀÌ Ç÷¡±×¸¦ »ç¿ë ÇÏ ¿© ¼±ÅÃÀûÀ¸·Î Ç¥½Ã µÇÁö ¾Êµµ·Ï ÇÏ·Á¸é ´ëÈ »óÀÚ ±Û²Ã Å©±â ÄÞº¸ »óÀÚ¿¡ ´ë ÇÑ Ãʱ⠼±Åà ÇÕ´Ï´Ù. ÅؽºÆ® ¼±Åà ¿µ¿ª¿¡ Àû¿ë µÇ´Â ´ÜÀÏ ±Û²Ã Å©±â°¡ ¾ø´Â °æ¿ì À¯¿ë. |
CF_NOSIMULATIONS | ChooseFont Çã¿ë Çؼ´Â ¾È ±×·¡ÇÈ ÀåÄ¡ ÀÎÅÍÆäÀ̽º (GDI) ±Û²Ã ½Ã¹Ä·¹À̼ÇÀ» ÁöÁ¤ ÇÕ´Ï´Ù. |
CF_NOVECTORFONTS | ChooseFont Çã¿ë Çؼ´Â ¾È º¤ÅÍ ±Û²Ã ¼±Åà ÁöÁ¤. |
CF_NOVERTFONTS | °¡·Î ¹æÇâµÈ ±Û²Ã¸¸ ³ª¿ ÇÏ·Á¸é ±Û²Ã ´ëÈ »óÀÚ. |
CF_PRINTERFONTS | HDC ±¸¼º¿ø¸¸ ÀåÄ¡ ÄÁÅؽºÆ® (¶Ç´Â Á¤º¸ ÄÁÅؽºÆ®)¿Í ¿¬°á µÈ ÇÁ¸°ÅÍ¿¡¼ Áö ¿øÇÏ´Â ±Û²Ã ½Äº° ¸ñ·Ï ´ëÈ »óÀÚ. |
CF_SCALABLEONLY | ChooseFont È®Àå °¡´ÉÇÑ ±Û²Ã ¼±Åø¸ Çã¿ë ÇØ¾ß ÁöÁ¤ ÇÕ´Ï´Ù. (º¤ÅÍ ±Û²Ã, È®Àå °¡´ÉÇÑ ÇÁ¸°ÅÍ ±Û²Ã, Æ®·çŸÀÔ ±Û²ÃÀ» Æ÷ÇÔ ÇÏ´Â È®Àå °¡´ÉÇÑ ±Û²Ã ¹× ´Ù¸¥ ±â¼úÀ» ÅëÇØ È®Àå ±Û²Ã.) |
CF_SCREENFONTS | ½Ã½ºÅÛ¿¡¼ Áö ¿øÇÏ´Â È¸é ±Û²Ã¸¸ ³ª¿ ÇÏ·Á¸é ´ëÈ »óÀÚ. |
CF_SCRIPTSONLY | ¸ðµç ºñ OEM ¹× ±âÈ£ ¹®ÀÚ ÁýÇÕÀ¸·Î ANSI ¹®ÀÚ ÁýÇÕ¿¡ ´ë ÇÑ ChooseFont ±Û²Ã ¼±Åà Çã¿ë ÇØ¾ß ÁöÁ¤ ÇÕ´Ï´Ù. ÀÌ CF_ANSIONLY °ª ´ëü. |
CF_SELECTSCRIPT | ÀÔ·ÂÀ» ÁöÁ¤ ÇÏ´Â °æ¿ì À¯ÀÏÇÑ ±Û²Ã ¹®ÀÚ ÁýÇÕÀÇ lfCharSet ±¸¼º¿ø¿¡¼ ½Äº° µÇ´Â LOGFONT ±¸Á¶ Ç¥½Ã µË´Ï´Ù. »ç¿ëÀÚ ¼³Á¤ ½ºÅ©¸³Æ® ÄÞº¸ »óÀÚ¿¡ ÁöÁ¤ µÈ ¹®ÀÚ¸¦ º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù. |
CF_SHOWHELP | µµ¿ò¸» ´ÜÃ߸¦ Ç¥½Ã ÇÏ·Á¸é ´ëÈ »óÀÚ¸¦ ¹ß»ý ÇÕ´Ï´Ù. HwndOwner ±¸¼º¿ø HELPMSGSTRING À» ¹ÞÀ» ¼ö Àִ âÀ» µî·Ï ´ëÈ »óÀÚ¿¡¼ µµ¿ò¸» ´ÜÃ߸¦ Ŭ¸¯ÇÒ ¶§ º¸³»´Â ¸Þ½ÃÁö¸¦ ÁöÁ¤ ÇØ¾ß ÇÕ´Ï´Ù. |
CF_USESTYLE | ½ºÅ¸ÀÏ µ¥ÀÌÅ͸¦ Æ÷ÇÔ ÇÏ´Â ¹öÆÛ¿¡ lpszStyle ¸â¹ö Æ÷ÀÎÆ®´Â ChooseFont »ç¿ë Çϵµ·Ï ÁöÁ¤ ÇÕ´Ï´Ù ±Û²Ã ½ºÅ¸ÀÏ ÄÞº¸ »óÀÚ¸¦ ÃʱâÈ ÇÕ´Ï´Ù. »ç¿ëÀÚ°¡ ´ëÈ »óÀÚ¸¦ ´ÝÀ¸¸é ChooseFont º¹»çº» ½ºÅ¸ÀÏÀÌ ¹öÆÛ¿¡ »ç¿ëÀÚÀÇ ¼±Åÿ¡ ´ë ÇÑ µ¥ÀÌÅÍ. |
CF_WYSIWYG | ChooseFont ÇÁ¸°ÅÍ¿Í µð½ºÇ÷¹ÀÌ¿¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ±Û²ÃÀÇ ¼±Åø¸À» Çã¿ë ÇØ¾ß ÁöÁ¤ ÇÕ´Ï´Ù. ÀÌ Ç÷¡±×¸¦ ÁöÁ¤ ÇÏ´Â °æ¿ì¿¡ CF_BOTH ¹× CF_SCALABLEONLY Ç÷¡±× ÁöÁ¤µµ ÇÑ´Ù. |
°ª | ÀÇ¹Ì |
---|---|
BOLD_FONTTYPE | ±Û²Ã µÎ²² ±½°Ô Ç¥½Ã µË´Ï´Ù. ÀÌ Á¤º¸ lfWeight ±¸¼º¿ø¿¡ º¹Á¦ µÇ´Â LOGFONT ±¸Á¶¿Í µ¿ÀÏ FW_BOLD. |
ITALIC_FONTTYPE | ±â¿ïÀӲà ±Û²Ã Ư¼ºÀ» ¼³Á¤ ÇÕ´Ï´Ù. ÀÌ Á¤º¸´Â LOGFONT ±¸Á¶ lfItalic ±¸¼º¿ø¿¡ º¹Á¦. |
PRINTER_FONTTYPE | ±Û²ÃÀº ÇÁ¸°ÅÍ ±Û²Ã. |
REGULAR_FONTTYPE | ±Û²Ã µÎ²²°¡ Á¤»óÀÔ´Ï´Ù. ÀÌ Á¤º¸´Â LOGFONT ±¸Á¶Ã¼ÀÇ lfWeight ¸â¹ö¿¡ º¹Á¦ µÇ °í FW_REGULAR¿Í °°½À´Ï´Ù. |
SCREEN_FONTTYPE | ±Û²ÃÀº È¸é ±Û²Ã. |
SIMULATED_FONTTYPE | ±Û²Ã ±×·¡ÇÈ ÀåÄ¡ ÀÎÅÍÆäÀ̽º (GDI)À¸·Î ½Ã¹Ä·¹À̼Ç. |
nbsp;?Windows &NT: ¹öÀü 3.1 ÀÌ»óÀÌ ÇÊ¿ä ÇÕ´Ï´Ù.
Windows:Windows 95 ÀÌ»óÀÌ ÇÊ¿äÇÕ´Ï´Ù.
Windows CE:Áö¿ø µÇÁö ¾Ê½À´Ï´Ù.
Çì´õ:Commdlg.h¿¡ ¼±¾ð ÇÕ´Ï´Ù.
À¯´ÏÄÚµå:À¯´ÏÄÚµå¿Í ANSI ±¸Á¶ Á¤ÀÇ.
°ø¿ë ´ëÈ »óÀÚ ¶óÀ̺귯¸® °³¿ä, ÀÏ¹Ý ´ëÈ »óÀÚ ±¸Á¶, ChooseFont, LOGFONT, MAKEINTRESOURCE