I want to create a custom component (line chart) that will be used in other applications.
I do not know 2 things:
Where should I use (in the component class!) Drawing methods like FillRect
or PolyLine? In the OnPaint handler, which should I define and display in the MESSAGE MAP? Will be
it (the OnPaint handler) is called from the OnPaint handler of the application dialog
or where from?
How to connect a component, once it is done, to a test application that will
for example, based on dialogue? Where should I instantiate this component? Of
OnCreate method for MyAppDialog.cpp?
I started coding in MFC a few days ago, and I'm so confused.
Thanks in advance,
Greetings.
MFC (CWND),
MessageMap , CWND:: OnDraw, . .
http://msdn.microsoft.com/en-us/library/azz5wt61(VS.80).aspx
.
, . , MFC, ( , ) , "OnDraw" (MFC OnPaint , ).
OnDraw
ActiveX - , ActiveX. , Visual Studio, , , " ActiveX..." . , - . , , , .
Source: https://habr.com/ru/post/1741504/More articles:cakephp COUNT per month per year - mysqlHow to make multiple instances of RCVR, RQSTR and CLUSRCVR channels in WMQ? - ibm-mqBad execution plans when using a filter and CONTAINSTABLE in a query - sqlPars numeric flags ifconfig - unixpython unittest howto - pythonIs there a compilation symbol to detect compact structure? - c #Multiple counts in CakePHP - sqlDisplay of 3D textures - 3dHow to determine if a cell with a sheet extension contains a date or a real number? - javaAre server and client channels available only for channels that can have more than one instance? - ibm-mqAll Articles