Public Methods |
| | CFracWnd () |
| void | set_image (FractalImage *) |
| virtual | ~CFracWnd () |
Protected Methods |
| afx_msg void | OnPaint () |
| afx_msg void | OnLButtonDown (UINT nFlags, CPoint point) |
| afx_msg void | OnLButtonUp (UINT nFlags, CPoint point) |
| afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
| afx_msg void | OnSize (UINT nType, int cx, int cy) |
Private Methods |
| void | update_bitmap (void) |
| void | construct (CDC *p_dc, int width, int height) |
| | Creates a cached image of the given size (in pixels), for drawing into the given CDC.
|
| void | draw_cbitmap (CDC *p_dc, const CRect &image_rect_v, HBITMAP bitmap, DWORD rasterop) |
| | Draws the image into the given DC.
|
| void | zoom_in (const CRect &) |
| | Sets the view transform to show the given rectangle in window space (which has (0,0) at top left).
|
Private Attributes |
| FractalImage * | m_image |
| | Image being shown.
|
| HBITMAP | m_rgb_bitmap |
| | Offscreen image in which RGB pixel values are set.
|
| CPoint | m_mouse_down |
| CPoint | m_mouse_curr |
| bool | m_in_drag |