Heres the output:
D:\Videos\CustomStory(Red X Orginization)\main.cpp|54|error: 'WM_Paint' was not declared in this scope|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\..\include\wingdi.h|2976|error: initializing argument 2 of 'void* SelectObject(HDC, HGDIOBJ)' [-fpermissive]|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|64|error: invalid conversion from 'HGDIOBJ {aka void*}' to 'HBITMAP' [-fpermissive]|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|66|error: invalid conversion from 'int' to 'HGDIOBJ {aka void*}' [-fpermissive]|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\..\include\wingdi.h|2874|error: initializing argument 1 of 'int GetObjectA(HGDIOBJ, int, PVOID)' [-fpermissive]|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|68|error: too few arguments to function 'BOOL BitBlt(HDC, int, int, int, int, HDC, int, int, DWORD)'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\..\include\wingdi.h|2707|note: declared here|
D:\Videos\CustomStory(Red X Orginization)\main.cpp||In function 'LRESULT WndProc(HWND, UINT, WPARAM, LPARAM)':|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|54|error: 'WM_Paint' was not declared in this scope|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|64|error: invalid conversion from 'int' to 'HGDIOBJ {aka void*}' [-fpermissive]|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\..\include\wingdi.h|2976|error: initializing argument 2 of 'void* SelectObject(HDC, HGDIOBJ)' [-fpermissive]|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|64|error: invalid conversion from 'HGDIOBJ {aka void*}' to 'HBITMAP' [-fpermissive]|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|66|error: invalid conversion from 'int' to 'HGDIOBJ {aka void*}' [-fpermissive]|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\..\include\wingdi.h|2874|error: initializing argument 1 of 'int GetObjectA(HGDIOBJ, int, PVOID)' [-fpermissive]|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|68|error: too few arguments to function 'BOOL BitBlt(HDC, int, int, int, int, HDC, int, int, DWORD)'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\..\..\..\..\include\wingdi.h|2707|note: declared here|
D:\Videos\CustomStory(Red X Orginization)\main.cpp|58|warning: unused variable 'ps' [-Wunused-variable]|
||=== Build finished: 7 errors, 1 warnings (0 minutes, 2 seconds) ===|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
case WM_Paint:
{
BITMAP bm;
PAINTSTRUCT ps;
HDC hdc;
HDC hdcMem = CreateCompatibleDC(hdc);
HBITMAP old = SelectObject(hdcMem, RedXOrginization_Background_Image);
GetObject(RedXOrginization_Background_Image, sizeof(bm), &bm);
BitBlt(hdc,0,0,bm.bmWidth, bm.bmHeight, 0, 0, SRCCOPY);
SelectObject(hdcMem, old);
DeleteDC(hdcMem);
}
|