///////////////////////////////////////////////////////////////////////////////////////// // ThemedSkin::measure const //! Measures a standard CheckBox control //! //! \param[in,out] &chk - CheckBox to be measured //! \param[in,out] &dc - Output device context //! \return SizeL - Required size ///////////////////////////////////////////////////////////////////////////////////////// SizeL measure(CheckBox<ENC>& chk, DeviceContext& dc) const override { Theme theme(chk.handle(), L"Button"); // Measure checkbox + text + edges return theme.measure(dc, BP_CHECKBOX, CBS_UNCHECKEDNORMAL) + dc.measure(chk.Text()) + SizeL(3*Metrics::WindowEdge.Width, 0); }
///////////////////////////////////////////////////////////////////////////////////////// // ThemedSkin::measure const //! Measures a standard button control //! //! \param[in,out] &btn - Button to be measured //! \param[in,out] &dc - Output device context //! \return SizeL - Required size ///////////////////////////////////////////////////////////////////////////////////////// SizeL measure(Button<ENC>& btn, DeviceContext& dc) const override { // Measure button text return dc.measure(btn.Text()); }