1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#include <windows.h>
HWND hwnd;
LRESULT CALLBACK P(HWND A,UINT B,WPARAM C,LPARAM D){
switch(B){
case WM_CREATE:
CreateWindowEx(WS_EX_CLIENTEDGE,"AtlAxWin","http://www.google.com",WS_VISIBLE|WS_CHILD| WS_VSCROLL | WS_HSCROLL,
5,5 , 990, 790,
A, (HMENU)NULL, GetModuleHandle(NULL), // retrieves the current hInstance
NULL);
break;
case 0x2:
PostQuitMessage(0);
break;
default:
return DefWindowProc(A,B,C,D);
}
return 0;
}
char title[]="Web Browser";
int WINAPI WinMain(HINSTANCE A,HINSTANCE B,LPSTR C,int d){
HWND E;
MSG F;
WNDCLASS G={0};
G.hInstance =A;
G.lpszClassName=title;
G.lpfnWndProc=P;
G.hbrBackground=GetSysColorBrush(COLOR_3DFACE);
RegisterClass(&G);
CreateWindow(G.lpszClassName,title,0xcf0000|WS_VISIBLE,10,20,1000,800,0,0,A,0);
while(GetMessage(&F,NULL,0,0)){
TranslateMessage(&F);
DispatchMessage(&F);
}
return F.wParam;
}
|