diff options
Diffstat (limited to 'chrome_frame/turndown_prompt/turndown_prompt_window.h')
-rw-r--r-- | chrome_frame/turndown_prompt/turndown_prompt_window.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome_frame/turndown_prompt/turndown_prompt_window.h b/chrome_frame/turndown_prompt/turndown_prompt_window.h index 626fca6..342e38a 100644 --- a/chrome_frame/turndown_prompt/turndown_prompt_window.h +++ b/chrome_frame/turndown_prompt/turndown_prompt_window.h @@ -28,8 +28,11 @@ class UrlLauncher; namespace WTL { class CHyperLink; +class CBitmapButton; } // namespace WTL +class CFBitmapButton; + // Implements a dialog with text and buttons notifying the user that Chrome // Frame is being turned down, offering them a link to learn more about moving // to a modern browser. @@ -68,8 +71,8 @@ class TurndownPromptWindow BEGIN_DLGRESIZE_MAP(InfobarWindow) DLGRESIZE_CONTROL(IDDISMISS, DLSZ_CENTER_Y | DLSZ_MOVE_X) DLGRESIZE_CONTROL(IDUNINSTALL, DLSZ_CENTER_Y | DLSZ_MOVE_X) - DLGRESIZE_CONTROL(IDC_TD_PROMPT_MESSAGE, DLSZ_SIZE_Y | DLSZ_SIZE_X) DLGRESIZE_CONTROL(IDC_TD_PROMPT_LINK, DLSZ_CENTER_Y | DLSZ_MOVE_X) + DLGRESIZE_CONTROL(IDC_TD_PROMPT_MESSAGE, DLSZ_SIZE_Y | DLSZ_SIZE_X) END_DLGRESIZE_MAP() virtual void OnFinalMessage(HWND); @@ -83,6 +86,9 @@ class TurndownPromptWindow // The TurndownPromptWindow manages its own destruction. virtual ~TurndownPromptWindow(); + // Performs the necessary configuration to initialize a bitmap button. + static void SetupBitmapButton(TurndownPromptWindow* window); + // Event handlers. void OnDestroy(); BOOL OnInitDialog(CWindow wndFocus, LPARAM lInitParam); @@ -101,6 +107,7 @@ class TurndownPromptWindow InfobarContent::Frame* frame_; // Not owned by this instance scoped_ptr<WTL::CHyperLink> link_; + scoped_ptr<CFBitmapButton> close_button_; scoped_ptr<UrlLauncher> url_launcher_; base::Closure uninstall_closure_; |