HyperlinkCtrl Struct Reference

Hyperlink Controls. More...

#include <window.h>

Inheritance diagram for HyperlinkCtrl:

Inheritance graph
[legend]
Collaboration diagram for HyperlinkCtrl:

Collaboration graph
[legend]

Public Types

typedef SubclassedWindow super

Public Member Functions

 HyperlinkCtrl (HWND hwnd, COLORREF colorLink=RGB(0, 0, 255), COLORREF colorVisited=RGB(128, 0, 128))
 HyperlinkCtrl (HWND owner, int id, COLORREF colorLink=RGB(0, 0, 255), COLORREF colorVisited=RGB(128, 0, 128))
 ~HyperlinkCtrl ()

Data Fields

String _cmd

Protected Member Functions

LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
void init ()
bool LaunchLink ()

Protected Attributes

COLORREF _textColor
COLORREF _colorVisited
HFONT _hfont
HCURSOR _crsr_link

Detailed Description

Hyperlink Controls.

Definition at line 798 of file window.h.


Member Typedef Documentation

typedef SubclassedWindow HyperlinkCtrl::super

Reimplemented from SubclassedWindow.

Definition at line 800 of file window.h.


Constructor & Destructor Documentation

HyperlinkCtrl::HyperlinkCtrl ( HWND  hwnd,
COLORREF  colorLink = RGB(0, 0, 255),
COLORREF  colorVisited = RGB(128, 0, 128) 
)

HyperlinkCtrl::HyperlinkCtrl ( HWND  owner,
int  id,
COLORREF  colorLink = RGB(0, 0, 255),
COLORREF  colorVisited = RGB(128, 0, 128) 
)

HyperlinkCtrl::~HyperlinkCtrl (  ) 


Member Function Documentation

LRESULT HyperlinkCtrl::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
) [protected, virtual]

Reimplemented from SubclassedWindow.

void HyperlinkCtrl::init (  )  [protected]

bool HyperlinkCtrl::LaunchLink (  )  [inline, protected]

Definition at line 819 of file window.h.

References _cmd.

00820     {
00821         if (!_cmd.empty()) {
00822             HINSTANCE hinst = ShellExecute(GetParent(_hwnd), _T("open"), _cmd, 0, 0, SW_SHOWNORMAL);
00823             return (int)hinst > HINSTANCE_ERROR;
00824         }
00825 
00826         return true;
00827     }


Field Documentation

String HyperlinkCtrl::_cmd

Definition at line 807 of file window.h.

Referenced by LaunchLink().

COLORREF HyperlinkCtrl::_textColor [protected]

Definition at line 810 of file window.h.

COLORREF HyperlinkCtrl::_colorVisited [protected]

Definition at line 811 of file window.h.

HFONT HyperlinkCtrl::_hfont [protected]

Definition at line 812 of file window.h.

HCURSOR HyperlinkCtrl::_crsr_link [protected]

Definition at line 813 of file window.h.


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage