Home > Software engineering >  How to use the slider control with MFC realize the function of the scale
How to use the slider control with MFC realize the function of the scale

Time:11-03

You have to do a radar image display software, how to use the slider to realize image zooming, and output ratio in the two text box, such as those days 20 1 output

CodePudding user response:

Coordinate Space and the Transformation Functions provides
The following functions provides are 2 with coordinate Spaces and transformations.



ClientToScreen
CombineTransform
DPtoLP
GetCurrentPositionEx
GetGraphicsMode
GetMapMode
GetViewportExtEx
GetViewportOrgEx
GetWindowExtEx
GetWindowOrgEx
GetWorldTransform
LPtoDP
MapWindowPoints
ModifyWorldTransform
OffsetViewportOrgEx
OffsetWindowOrgEx
ScaleViewportExtEx
ScaleWindowExtEx
ScreenToClient
SetGraphicsMode
SetMapMode
SetViewportExtEx
SetViewportOrgEx
SetWindowExtEx
SetWindowOrgEx
SetWorldTransform



CodePudding user response:

CSliderCtrl Class Members
Construction
The Attributes of
Operations

Construction

CSliderCtrl Constructs a CSliderCtrl object.
Create Creates a slider control and attaches it to a CSliderCtrl object.


The Attributes of

GetLineSize Retrieves the line size of a slider control.
SetLineSize Sets the line size of a slider control.
GetPageSize Retrieves the page size of a slider control.
SetPageSize Sets the page size of a slider control.
GetRangeMax Retrieves the maximum position for a slider.
GetRangeMin Retrieves the minimum position for a slider.
GetRange Retrieves the minimum and maximum positions for a slider.
SetRangeMin Sets the minimum position for a slider.
SetRangeMax Sets the maximum position for a slider.
SetRange Sets the minimum and maximum positions for a slider.
GetSelection Retrieves the range of the current selection.
SetSelection Sets the range of the current selection.
GetChannelRect Retrieves the size of the slider control's channel.
GetThumbRect Retrieves the size of the slider control 's thumb.
GetPos Retrieves the current position of the slider.
SetPos Sets the current position of the slider.
GetNumTics Retrieves the number of tick marks in a slider control.
GetTicArray Retrieves the array of tick mark positions for a slider control.
GetTic Retrieves the position of the specified tick mark.
GetTicPos Retrieves the position of the specified tick mark, in client coordinates.
SetTic Sets the position of the specified tick mark.
SetTicFreq Sets the frequency of tick marks per the slider control increment.
GetBuddy Retrieves the handle to a slider control buddy window at a given location.
SetBuddy Assigns a window as the buddy window for a slider control.
GetToolTips Retrieves the handle to the tooltip control assigned to the slider control, if any.
SetToolTips Assigns a tooltip control to a slider control.
SetTipSide Positions a tooltip control, informs by a trackbar control.


Operations

ClearSel Clears the current selection in a slider control.
VerifyPos Verifies that the position of a slider control is between the minimum and maximum values.
ClearTics Removes the current tick marks from a slider control.


CSliderCtrl Overview | Base Class Members | Hierarchy Chart
  • Related