What happens before and after OnInitDialog!

Two functions to look up would be… _AfxPreInitDialog _AfxPostInitDialog As the name suggests _AfxPreInitDialog gets called before OnInitDialog is called and _AfxPostInitDialog gets called after OnInitDialog. One of the things that happens in _AfxPostInitDialog is centering of a dialog if user hasn’t changed position of the dialog in OnInitDialog, so how is this done? _AfxPreInitDialog […]
Continue reading…

 

Embedding progressbar in a statusbar!

Recently one user asked in a forum about how to embed a progress bar in a status bar! So basically what everybody should realize is that these are after all just windows! This means one window can go into another window, there is no limitation on this feature! Limitation is how you code and what […]
Continue reading…