c++ - Initializing a control's member variable from device context -


I'm writing custom control obtained from CWnd I use my custom presentation to get my custom control What is the right way to do this, to start the member's variables (such as: a memory DC)? I think the device will not be ready in the reference constructor. So what's the next option? Is it OnCreate event protected by using DC? I'm probably looking for something like OnInitDialog , but it has a custom control, no dialogue.

Update : I have no chance of receiving custom control via the original editor because of the WM_CREATE event because it is sub-clinging Already made.



Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -