المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Windows UI: Our WinMgr Sample Makes Custom Window Sizing Simple



C++ Programming
03-29-2009, 02:42 AM
Programmers using Visual Basic have always had an advantage over C++ programmers when it comes to component and window sizing. There are many third-party Visual Basic-based solutions to this age-old problem, but unfortunately, there are few elegant alternatives for the C++ crowd, short of using a full-fledged windowing toolkit. This article explains how to circumvent the tedious task of hardcoded pixel arithmetic. It starts by introducing a window sizing rules system, and then moves on to show how CWinMgr, a data-driven class, can intelligently manage an MFC application's window sizing.

Paul DiLascia

<a href="http://msdn.microsoft.com/magazine/1ddf346d-218d-4652-a6f0-4a3b75200a96">MSDN Magazine July 2001