📄 imagewnd.h
字号:
#if !defined(AFX_WNDCOMLOAD_H__8C913E35_6E13_48DE_8D23_D341685217B7__INCLUDED_)#define AFX_WNDCOMLOAD_H__8C913E35_6E13_48DE_8D23_D341685217B7__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// WndComLoad.h : header file///////////////////////////////////////////////////////////////////////////////// RxImageWnd window#define HT_BOTTOM 101#define HT_GRIP 102#define UM_MOVE_SLIDER (WM_USER + 7777)class CCTooltipCtrl;class RxDib;class RxImageWnd : public CWnd{// Constructionpublic: RxImageWnd(int iRFCNum);// Attributespublic: int m_nNcGripSize; int m_nNcMin; int m_nNcMax; int m_nNcPos; int m_nNcPixel;private: int m_iRFNum; unsigned short *m_pnRawImage; unsigned char *m_pnRawImageColor; CSize m_szRawImg; CSize m_szDIB;protected: CSize m_szWindow; RxDib* m_pDib;// Operationspublic: int PosToPixel(int nValue, int nPosMin, int nPosMax, int nPixelMin, int nPixelMax, BOOL bPosToPixel); void DrawSlider(BOOL bCallByPos, BOOL bCheck); void SetSliderRange(int nMin, int nMax, BOOL bRedraw); void SetSliderPos(int nPos, BOOL bRedraw); void GetSliderRange(int &nMin, int &nMax); int GetSliderPos(); void Resample(CString strFilePath); void RedrawScreen(); void ClearScreen();// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(RxImageWnd) //}}AFX_VIRTUAL// Implementationpublic: virtual ~RxImageWnd(); virtual void OnDraw(CDC *pDC); // Generated message map functionsprotected: //{{AFX_MSG(RxImageWnd) afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp); afx_msg UINT OnNcHitTest(CPoint point); afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point); afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); afx_msg void OnNcPaint(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_WNDCOMLOAD_H__8C913E35_6E13_48DE_8D23_D341685217B7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -