Top Win32API Interview Questions :: ALLInterview.com http://www.allinterview.com Top Win32API Interview Questions en-us What is Win32? http://www.allinterview.com/showanswers/121.html Win32 refers to Microsoft 32 bit Windows API. Win32 Applications are programs which are built with the Win32 API. what is the difference between MFC and Win32 http://www.allinterview.com/showanswers/56580.html Win32 is a set of Windows APIs written in C and MFC is a framework built arround Win32. All MFC functions internally use Win32 APIs. And MFC is written in C++. what API used to hide window http://www.allinterview.com/showanswers/13762.html ShowWindow(hwnd, SW_HIDE); // to hide window ShowWindow(hwnd, SW_SHOW); // to show window what is the function to repaint a window immediately? http://www.allinterview.com/showanswers/13758.html Invalidate() -- To repaint the entire client area InvalidateRect() -- To repaint a specific portion of the client area. How to load Bitmap at Dialogbakground in an MFC application? http://www.allinterview.com/showanswers/56583.html In OnInitDialog: ----------------- 1. Create CBitmap from the bitmap. 2. Create a memory DC (CDC) 3. Put the CBitmap into the memory DC (Use CDC::SelectObject function). In OnPaint: ------------ 4. Get your dialog DC (CDialog::GetDC) 5. write About send message and post message http://www.allinterview.com/showanswers/13757.html SendMessage is a blocking call. ie., when a SendMessage() API is called from an application, the lines written after this API call cannot be executed until the message is processed and returned by the window procedure. Whereas PostMessage() About GDI object? http://www.allinterview.com/showanswers/13760.html GDI object (is a graphical device object) used to write on a device context for graphical output. GDI objects are: Pen, Brush, Font,Line, Rectangle etc. These objects are created using their corresponding win32 function. For eg, CreatePen, Creat Message to limit the size of window http://www.allinterview.com/showanswers/13759.html BOOL MoveWindow( HWND hWnd, // handle to window int X, // horizontal position int Y, // vertical position int nWidth, // width int nHeight, // height BOOL bRepaint // repaint option ); This cud be What are the COM components http://www.allinterview.com/showanswers/56582.html http://forums.microsoft.com/MSDN/ShowPost.aspx? PostID=721310&SiteID=1 what Message displayed when a window is destroyed http://www.allinterview.com/showanswers/13756.html WM_DESTROY how to Initialize contents of a dialog? http://www.allinterview.com/showanswers/13761.html Using OnInitDialog API what are the design patterns of an MFC application http://www.allinterview.com/showanswers/56581.html It is MVC(Model View Controller)pattern In Win32 application can we use CString datatype? http://www.allinterview.com/showanswers/64769.html Afaik CString is a MFC class. You cannot use it in win32 application unless you set your application to use MFC libraries. To use MFC in win32 application, go to project settings and in general tab, set it to use MFC libraries in shared DLL. Function entry for DLL in win3.1 http://www.allinterview.com/showanswers/13754.html DllMain. In win32 application if defining a variable of CString then it gives http://www.allinterview.com/showanswers/64770.html Afaik CString is a MFC class. You cannot use it in win32 application unless you set your application to use MFC libraries. To use MFC in win32 application, go to project settings and in general tab, set it to use MFC libraries in shared DLL.