]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/spawnbrowser.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: msw/spawnbrowser.cpp
3 // Purpose: implements wxSpawnBrowser misc function
4 // Author: Jason Quijano
8 // Copyright: (c) 2001 Jason Quijano <jasonq@scitechsoft.com>
9 // License: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
21 #pragma implementation "spawnbrowser.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
31 #if wxUSE_SPAWNBROWSER
34 #include "wx/string.h"
37 #include "wx/spawnbrowser.h"
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 bool wxSpawnBrowser (wxWindow
*parent
, wxString href
)
45 return ShellExecute(parent
? (HWND
)parent
->GetHWND() : NULL
,NULL
,href
.c_str(),NULL
,"",SW_SHOWNORMAL
);
48 #endif // wxUSE_SPAWNBROWSER