๋ฐ˜์‘ํ˜•

Visual Studio 2015๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Dialog ๊ธฐ๋ฐ˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.


1. Visual Studio 2015๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.


2. ํ”„๋กœ์ ํŠธ์˜ ์ด๋ฆ„์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

(์ถ”ํ›„ Button Control ์„ค๋ช…์„ ์œ„ํ•ด ํ”„๋กœ์ ํŠธ ์ด๋ฆ„์„ 'MyButton'์ด๋ผ๊ณ  ์ž…๋ ฅํ–ˆ์Šต๋‹ˆ๋‹ค.)


3. MFC Application Wizard ํ™”๋ฉด์ด ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค. 

๊ธฐ๋ณธ ์„ค์ • ๊ฐ’์œผ๋กœ ๋งˆ์น˜๋ ค๋ฉด 'Finish'๋ฒ„ํŠผ์„, ์„ค์ •์„ ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด 'Next'๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.


4. 'Application Type'์˜ ๊ธฐ๋ณธ ๊ฐ’์€ 'Multiple documents(MDI)'์ž…๋‹ˆ๋‹ค.

๋ฐ‘์— ์žˆ๋Š” 'Dialog based'๋ฅผ ํด๋ฆญํ•˜์—ฌ ๋ณ€๊ฒฝํ•˜๊ณ  'Next'๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.


5. 'User Interface Features'์—์„œ 'About box'๊ฐ€ ๊ธฐ๋ณธ ๊ฐ’์œผ๋กœ ์ฒดํฌ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

'About box'๋Š” ์‹คํ–‰๋œ ํ”„๋กœ๊ทธ๋žจ์˜ ์ •๋ณด๋ฅผ ํ‘œ์‹œํ•ด์ฃผ๋Š” ์ •๋ณด ์ฐฝ์ด๋ผ๊ณ  ๋ณด์‹œ๋ฉด ๋˜๋Š”๋ฐ์š”.

ํ•„์š”ํ•˜๋‹ค๋ฉด ์ฒดํฌ๋ฅผ ํ•ด์„œ ์‚ฌ์šฉํ•ด๋„ ๋˜์ง€๋งŒ, ์ €๊ฐ™์€ ๊ฒฝ์šฐ์—๋Š” ๊ฑฐ์˜ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์—†์–ด์„œ ์•„๋ž˜ ๊ทธ๋ฆผ์ฒ˜๋Ÿผ ์ฒดํฌ๋ฅผ ํ•ด์ œํ•˜๊ณ  ํ”„๋กœ์ ํŠธ๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.


6. ๋‹ค์Œ์€ 'Advanced Features' ํ™”๋ฉด์ž…๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” ๋ณ„๋‹ค๋ฅธ ์„ค์ •์—†์ด 'Next'๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.


7. ๋งˆ์ง€๋ง‰์œผ๋กœ Generated Classes' ํ™”๋ฉด์ž…๋‹ˆ๋‹ค. ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ๋”ฐ๋กœ ์„ค์ •ํ•ด์•ผํ•˜๋Š” ๋ถ€๋ถ„์€ ์—†์œผ๋ฉฐ 'Finish'๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.


8. ํ”„๋กœ์ ํŠธ๊ฐ€ ์ƒ์„ฑ์ด ์™„๋ฃŒ๋œ ์ฒซ ํ™”๋ฉด์ž…๋‹ˆ๋‹ค.

๊ฐ€์šด๋ฐ์— Static Control๊ณผ Button Control์ด ๋ฐฐ์น˜๋˜์–ด ์žˆ์œผ๋ฉฐ, ๋นŒ๋“œ๋ฅผ ํ•˜๋ฉด ๋‹น์—ฐํžˆ ์—๋Ÿฌ์—†์ด ์™„๋ฃŒ๊ฐ€ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.


์ด์ œ Dialog ๊ธฐ๋ฐ˜ ํ”„๋กœ์ ํŠธ ์ค€๋น„๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์•ž์œผ๋กœ ์ด ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ์„ ๊ธฐ์ดˆ๋กœ ๊ธ€์„ ์ด์–ด๋‚˜๊ฐ€๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.



๋ฐ˜์‘ํ˜•

'Programming > MFC' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[GDI] Part 2. ์ž‘๋„ํ•จ์ˆ˜ #2  (0) 2019.01.27
[GDI] Part 2. ์ž‘๋„ํ•จ์ˆ˜ #1  (0) 2019.01.27
[GDI] Part 1. GDI ๊ฐœ๋…  (0) 2019.01.27
[MFC] Custom Button ๋งŒ๋“ค๊ธฐ  (5) 2019.01.16
[MFC] Custom Button ์†Œ๊ฐœ  (0) 2019.01.15
[Button Control] ๋™์  ์ƒ์„ฑ  (11) 2017.06.25
[Button Control] ์ •์  ์ƒ์„ฑ  (0) 2017.06.04