如何用MFC的滑块控件实现比例尺的功能

qq_34690949 2016-04-19 04:20:23
毕设要做一个雷达图像显示的软件,如何用滑块实现图像的缩放,并在两个文本框中输出比例,比如20:1就输出 20 1
...全文
140 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-04-20
  • 打赏
  • 举报
回复
CSliderCtrl Class Members Construction Attributes Operations Construction CSliderCtrl Constructs a CSliderCtrl object. Create Creates a slider control and attaches it to a CSliderCtrl object. Attributes 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 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 used 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
赵4老师 2016-04-20
  • 打赏
  • 举报
回复
Coordinate Space and Transformation Functions The following functions are used 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

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧