New Win32API Interview Questions :: ALLInterview.com http://www.allinterview.com New Win32API Interview Questions en-us what is use of the createWindow object http://www.allinterview.com/showanswers/77713.html Hi All, i got through he h1b Lotreey in india. US staming in the c http://www.allinterview.com/showanswers/75307.html 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. 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. 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. What are the COM components http://www.allinterview.com/showanswers/56582.html http://forums.microsoft.com/MSDN/ShowPost.aspx? PostID=721310&SiteID=1 what are the design patterns of an MFC application http://www.allinterview.com/showanswers/56581.html It is MVC(Model View Controller)pattern 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++. System call executable binary file into a process http://www.allinterview.com/showanswers/13763.html WinExec() 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 how to Initialize contents of a dialog? http://www.allinterview.com/showanswers/13761.html Using OnInitDialog API 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 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. 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()