suba vc++ by subasheela


									#include<windows.h> #include"resource.h" HWND hv; MSG msg; WNDCLASS wn; long _stdcall myfun(HWND,UINT,UINT,long); int _stdcall WinMain(HINSTANCE hins,HINSTANCE hprev,LPSTR cmd,int i) { wn.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH); wn.hCursor=LoadCursor(hins,LPSTR(IDC_CURSOR1)); wn.hIcon=LoadIcon(hins,LPSTR(IDI_ICON1)); wn.hInstance=hins; wn.lpfnWndProc=myfun; wn.lpszClassName="my"; RegisterClass(&wn); hv=CreateWindow("my","hai",WS_OVERLAPPEDWINDOW,10,10,600,600,0,0,hins,0); ShowWindow(hv,i); while((GetMessage(&msg,0,0,0))>0) DispatchMessage(&msg); return 0; } long _stdcall myfun(HWND w,UINT x,UINT y,long z) { switch(x) { case WM_LBUTTONDOWN: MessageBox(w,"LEFT","isha",0); break; case WM_RBUTTONDOWN: MessageBox(w,"RIGHT","isha",0); break; case WM_DESTROY: PostQuitMessage(10); break; default: return DefWindowProc(w,x,y,z); } }

------------------------------------------------------------------------------The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. Reply Forward Invite venisha to Gmail

Reply Reply to all Forward Print Add venisha to Contacts list Delete this message Report phishing Show original Message text garbled? venisha murugan to me show details Dec 24 (23 hours ago) // nisha1.cpp : Defines the entry point for the application. // #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. MessageBox(0,"welcome","hai",5); return 0; }

To top