kevinnguyen
asked on
Graphics and dynamic control creation
I have two questions
1)I usually get involved with developing graphics application (not games) such as one can create 2D or 3D chart based on a set of given data points. My application should be able to run on Windows 9x/NT/2000/XP
Which one should I use ?
a)Windows GDI
b)Directr X
c)OpenGL
I heard that OpenGL can do games and graphics but can MFC
do the same without using any graphic library ?
2)Second, can MFC create dynamic Windows control on the fly (at run-time) in an MFC application just like Visual Basic does ? If it can, how is it done ?
I'd appreciate any links/sources or technical documents that can answer my two questions ?
1)I usually get involved with developing graphics application (not games) such as one can create 2D or 3D chart based on a set of given data points. My application should be able to run on Windows 9x/NT/2000/XP
Which one should I use ?
a)Windows GDI
b)Directr X
c)OpenGL
I heard that OpenGL can do games and graphics but can MFC
do the same without using any graphic library ?
2)Second, can MFC create dynamic Windows control on the fly (at run-time) in an MFC application just like Visual Basic does ? If it can, how is it done ?
I'd appreciate any links/sources or technical documents that can answer my two questions ?
ASKER
How can I add the newly created button to "MyDialog" dialog at a desired location ? What function do I call and what are the parameters ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
2) If I recall correct you can accomplish this:
CButton* pB = new CButton;
pB->Create( lpszCaption, dwStyle, rect, pParentWnd, nID );
Don't forget to
delete pB;
if you don't need the button any more.