Description: (1) Establish a Dialog-based MFC project
(2) set the width of the Dialog form 500 in its first line location to place a combo box and a button
3 combo box set eight default option, option is the number 1, 2, 3, 4, 5, 6, 7, 8
Combo box allows you to enter numbers, range 0-50
5 button title is "Do it."
Click the "Do it" button, the realization of functions: (1) complete or selected value of a combo box (the value is assumed to n), to create the n button, the size of each button are 25 long 40, from the interface first the two lines begin to show, each row shows the number of buttons does not exceed (10- line number) over automatically to the next line (line number starting from 0) ② each created button title is the serial number of the button, that is, 0 , 1,2 ... n-1, the button s background color and text color are random values ③ Click Create button, the button-related information, including the title content, the value of the background color, text is displayed
To Search:
File list (Check if you may need any files):
mfc动态随机变色按钮\Debug\BuildLog.htm
...................\.....\mt.dep
...................\.....\NewBtn.obj
...................\.....\NewBtn.sbr
...................\.....\StdAfx.obj
...................\.....\StdAfx.sbr
...................\.....\SXBtn.obj
...................\.....\SXBtn.sbr
...................\.....\vc60.idb
...................\.....\vc60.pdb
...................\.....\vc90.idb
...................\.....\vc90.pdb
...................\.....\第三题.bsc
...................\.....\第三题.exe
...................\.....\第三题.exe.embed.manifest
...................\.....\第三题.exe.embed.manifest.res
...................\.....\第三题.exe.intermediate.manifest
...................\.....\第三题.ilk
...................\.....\第三题.obj
...................\.....\第三题.pch
...................\.....\第三题.pdb
...................\.....\第三题.res
...................\.....\第三题.sbr
...................\.....\第三题Dlg.obj
...................\.....\第三题Dlg.sbr
...................\NewBtn.cpp
...................\NewBtn.h
...................\ReadMe.txt
...................\res\第三题.ico
...................\...\第三题.rc2
...................\resource.h
...................\StdAfx.cpp
...................\StdAfx.h
...................\SXBtn.cpp
...................\SXBtn.h
...................\第三题.aps
...................\第三题.clw
...................\第三题.cpp
...................\第三题.dsp
...................\第三题.dsw
...................\第三题.h
...................\第三题.ncb
...................\第三题.opt
...................\第三题.plg
...................\第三题.rc
...................\第三题.sln
...................\第三题.suo
...................\第三题.vcproj
...................\第三题.vcproj.pc-PC.pc.user
...................\第三题Dlg.cpp
...................\第三题Dlg.h
...................\Debug
...................\res
mfc动态随机变色按钮