Win32 - WebControl with 100% API

Windows specific forum
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Win32 - WebControl with 100% API

Post by va!n »

For a project where i have to use 100% Win32 API only - without the use of any 3rd part libs /dll - i need to use WebControl for showing websites. I am sure i saw something something like this in purebasic on the web - but i cant find it anymore. Has someone a working source / example? Many thanks!
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Win32 - WebControl with 100% API

Post by ts-soft »

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Re: Win32 - WebControl with 100% API

Post by va!n »

@ts-soft:
Thanks a lot for the links! 8)
Here is again a small example...

Code: Select all

    Import "atl.lib"
      AtlAxWinInit()
    EndImport

    AtlAxWinInit()

    OpenWindow(0,0,0,800,600," -| test |- ",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)

    whandle = CreateWindowEx_(0,"AtlAxWin","www.bing.de",#WS_VISIBLE|#WS_CHILD,10,10,780,580,WindowID(0),0,GetModuleHandle_(0),0)
   
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
This example is using ATL and its DLL... Afaik the PB WebControl is no longer based on this ATL... Where are the differences between ATL and the PB version of WebControl?
I think i saw an example somewhere, to create directly an IE based WebControl with COM (?) and without ATL.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Win32 - WebControl with 100% API

Post by Shield »

Maybe this one here is of use to you:
http://www.codeguru.com/cpp/i-n/ieprogr ... cation.htm
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Re: Win32 - WebControl with 100% API

Post by va!n »

@Shield, thanks for the link.
Sadly the link to the source seems to be broken.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Win32 - WebControl with 100% API

Post by Shield »

Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Post Reply