What is OLE ? How do you handle drag and drop in OLE ?
Object Linking and Embedding (OLE) clipboard is a more capable clipboard than the windows traditional clipboard. To transfer a large image using a legacy clipboard one must allocate enough memory space to copy this image. However using the OLE clipboard you can transfer the bitmap in a more sensible medium like a file on a […]
Read the rest of this entry »Can you explain message routing and message loop ?
When a window is visible on the screen it undergoes various stages such as CreateWindow, ShowWindow, etc. Once the window is displayed on the screen it must now make itself ready to take keyboard and mouse input from the user. Windows maintains a message queue for each windows program currently running under windows. When an […]
Read the rest of this entry »Which are the various message map macros ?
Message maps are an MFC approach to windows programming. Instead of writing a WinMain () function that sends messages to your WindProc and then writing a WindProc that checks which kind of message this is and then calls another of your functions, you just write the function that will handle the message, and you add […]
Read the rest of this entry »Explain command routing ?
A command is a special type of message. Windows generates a command whenever user chooses a menu item, clicks a button or tells the system to do something. Windows send a WM_COMMAND message for menu choices, button clicks or WM_NOTIFY for list box selection. Commands and notifications are passed around by the operating system just […]
Read the rest of this entry »
