in OnSize()
-
When dialog initialization, OnSize(UINT nType, int cx, int cy) run times more than one. The cx is Specifies the new width of the client area, but cx is not same in all times. How to get the right cx which is the real size?
-
When dialog initialization, OnSize(UINT nType, int cx, int cy) run times more than one. The cx is Specifies the new width of the client area, but cx is not same in all times. How to get the right cx which is the real size?
hanlei0000000009 wrote:
cx is not same in all times. How to get the right cx which is the real size?
Each time it represent the current real size. The last time is possibly of interest for you. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
When dialog initialization, OnSize(UINT nType, int cx, int cy) run times more than one. The cx is Specifies the new width of the client area, but cx is not same in all times. How to get the right cx which is the real size?