Click here to Skip to main content
15,893,668 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFree the loaded dll Pin
orcun colak11-Aug-03 5:37
orcun colak11-Aug-03 5:37 
GeneralRe: Free the loaded dll Pin
valikac11-Aug-03 12:09
valikac11-Aug-03 12:09 
GeneralRe: Free the loaded dll Pin
igor196011-Aug-03 18:51
igor196011-Aug-03 18:51 
QuestionHow to read from ADO recordset Pin
haritadala11-Aug-03 4:53
haritadala11-Aug-03 4:53 
QuestionHow to delete a dialog class in MFC project? Pin
mr200311-Aug-03 4:09
mr200311-Aug-03 4:09 
AnswerRe: How to delete a dialog class in MFC project? Pin
jhwurmbach11-Aug-03 5:21
jhwurmbach11-Aug-03 5:21 
QuestionWhere to place "OLEMISC_ACTIVATEWHENVISIBLE" at ATL ActiveX control? Pin
vgrigor11-Aug-03 3:59
vgrigor11-Aug-03 3:59 
AnswerRe: Where to place "OLEMISC_ACTIVATEWHENVISIBLE" at ATL ActiveX control? Pin
Mike Dimmick11-Aug-03 11:08
Mike Dimmick11-Aug-03 11:08 
These miscellaneous flags are stored in the registry.

You should have a .rgs file for your control which contains the registry entries to be created when it self-registers. Under the control's CLSID entry, you'll see a MiscStatus entry. It's a bitmask of all the values that are set. Typically the ATL wizard generates a value of 131473, which is hex 0x20191, which indicates the flags OLEMISC_SETCLIENTSITEFIRST, OLEMISC_ACTIVATEWHENVISIBLE, OLEMISC_INSIDEOUT, OLEMISC_CANTLINKINSIDE and OLEMISC_RECOMPOSEONRESIZE.

I'm not convinced that unsetting this flag will help, though - what it will do is only activate the control when it has the focus, relying on a cached image representation of the control the rest of the time.

You might be better off trying to optimise your drawing, e.g. minimise the number of drawing operations, following the batching rules mentioned in the GdiFlush[^] documentation, doing as much work with the selected object as possible (changing objects, for example, pens, causes a batch flush). If your control is windowed, consider making it windowless (draws into the parent window's device context) saving a small amount of time.
GeneralRe: Where to place "OLEMISC_ACTIVATEWHENVISIBLE" at ATL ActiveX control? Pin
vgrigor11-Aug-03 20:39
vgrigor11-Aug-03 20:39 
GeneralCreating a loop in a dialog Pin
Kayembi11-Aug-03 3:45
Kayembi11-Aug-03 3:45 
GeneralRe: Creating a loop in a dialog Pin
Ravi Bhavnani11-Aug-03 3:53
professionalRavi Bhavnani11-Aug-03 3:53 
GeneralRe: Creating a loop in a dialog Pin
Kayembi11-Aug-03 12:10
Kayembi11-Aug-03 12:10 
GeneralRe: Creating a loop in a dialog Pin
Ravi Bhavnani12-Aug-03 2:30
professionalRavi Bhavnani12-Aug-03 2:30 
QuestionHow to add a property that binds a list ActiveX to a DataSource Pin
Daed11-Aug-03 3:23
Daed11-Aug-03 3:23 
GeneralScrolling an image. Pin
Neha11-Aug-03 2:48
Neha11-Aug-03 2:48 
GeneralWeird thing with GetKeyState() Pin
keegan11-Aug-03 2:45
keegan11-Aug-03 2:45 
GeneralRe: Weird thing with GetKeyState() Pin
Mike Dimmick11-Aug-03 3:02
Mike Dimmick11-Aug-03 3:02 
GeneralRe: Weird thing with GetKeyState() Pin
HPSI11-Aug-03 3:18
HPSI11-Aug-03 3:18 
QuestionHow to get application icon associated with a file Pin
gumber11-Aug-03 2:23
gumber11-Aug-03 2:23 
AnswerRe: How to get application icon associated with a file Pin
David Crow11-Aug-03 2:38
David Crow11-Aug-03 2:38 
AnswerRe: How to get application icon associated with a file Pin
Jason Henderson11-Aug-03 3:28
Jason Henderson11-Aug-03 3:28 
GeneralGlobal variable Pin
Jerome Conus11-Aug-03 2:07
Jerome Conus11-Aug-03 2:07 
GeneralRe: Global variable Pin
Mike Dimmick11-Aug-03 2:09
Mike Dimmick11-Aug-03 2:09 
GeneralRe: Global variable Pin
Anthony_Yio11-Aug-03 16:09
Anthony_Yio11-Aug-03 16:09 
GeneralDestroy() window in MFC Pin
cberam11-Aug-03 1:53
cberam11-Aug-03 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.