win.cpp
#include <windows.h>
#include <string>
using namespace std;
#define IDC_SUBMIT 101 ///<Identifier For Submit Button
#define IDC_RESET 100 ///<Identifier For Reset Button
#define IDC_EDITBOX1 102
#define IDC_EDITBOX2 103
#define WIN_WIDTH 600
#define WIN_HEIGHT 500
HINSTANCE ghInstance; ///< Contains the instance of the Application
LRESULT CALLBACK WindowProc( HWND phWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
void Createopbutton(HWND phWnd);
void CreateLabels(HWND phWnd);
void CreateEditBox(HWND phWnd);
void RetrieveText(HWND hWnd);
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow )
{
WNDCLASS wc; ///<contains the window class attributes that are registered by the RegisterClass
MSG msg; ///<structure contains message information from a thread's message queue
HWND hWnd; ///<handle to window
BOOL bRet;
LoadLibrary(TEXT("riched32.dll"));
if( !hPrevInstance ){
wc.lpszClassName = TEXT("GenericAppClass"); ///<Name to identify the window class.
wc.lpfnWndProc = WindowProc; ///<Pointer to the window procedure for this window class
wc.