I have no idea how to move a bitmap with the arrow keys. Here is my code [CODE] #include <windows.h> #include <tchar.h> #include <stdlib.h> #include <string.h> #include "Menu.h" #include "Icon.h" LPCTSTR ClsName = L"App"; // Class name LPCTSTR WndName = L"WindowsAPI"; // Window title HWND hwnd; // Handle to our main window //////////////////////////////////////////////////// LRESULT CALLBACK WndProcedure(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam); //////////////////////////////////////////////////// INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow) { MSG Msg; // Structure to hold messages for our WinProc WNDCLASSEX WndClsEx; // Our WNDCLASSEX structure used to define a window // Define our window WndClsEx.cbSize …

Member Avatar
Member Avatar
+0 forum 24

Which is better Double Buffering or assigning to a Static Control. I would like an example of double buffering or both. This is my bitmap code. [CODE] #include <windows.h> #include <tchar.h> #include <stdlib.h> #include <string.h> #include "Menu.h" #include "Icon.h" LPCTSTR ClsName = L"App"; // Class name LPCTSTR WndName = L"WindowsAPI"; // Window title HWND hwnd; // Handle to our main window //////////////////////////////////////////////////// LRESULT CALLBACK WndProcedure(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam); //////////////////////////////////////////////////// INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow) { MSG Msg; // Structure to hold messages for our WinProc WNDCLASSEX WndClsEx; // Our WNDCLASSEX structure used …

Member Avatar
Member Avatar
+0 forum 1

The End.