Put the bitmap into the executable.
authorHartmut Birr <osexpert@googlemail.com>
Tue, 15 Nov 2005 17:54:00 +0000 (17:54 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Tue, 15 Nov 2005 17:54:00 +0000 (17:54 +0000)
svn path=/trunk/; revision=19252

rosapps/tests/bitblt/bitblt.c
rosapps/tests/bitblt/bitblt.rc [new file with mode: 0644]
rosapps/tests/bitblt/bitblt.xml

index 1815d73..2a2c3dd 100644 (file)
@@ -84,8 +84,8 @@ LRESULT CALLBACK MainWndProc(HWND HWnd, UINT Msg, WPARAM WParam,
             /* load a bitmap from file */
             HBITMAP HBmp =
                /* static_cast<HBITMAP> */(
-                  LoadImage(HInst, filename, IMAGE_BITMAP,
-                            0, 0, LR_LOADFROMFILE)
+                  LoadImage(HInst, MAKEINTRESOURCE(1000), IMAGE_BITMAP,
+                            0, 0, 0)
                             );
             if (HBmp)
             {
diff --git a/rosapps/tests/bitblt/bitblt.rc b/rosapps/tests/bitblt/bitblt.rc
new file mode 100644 (file)
index 0000000..6b12c9d
--- /dev/null
@@ -0,0 +1,2 @@
+1000            BITMAP  MOVEABLE PURE   "lena.bmp"\r
+\r
index 6b43110..958d1ee 100644 (file)
@@ -2,7 +2,9 @@
        <define name="_WIN32_IE">0x0501</define>
        <define name="_WIN32_WINNT">0x0501</define>
        <define name="__USE_W32API" />
+       <include base="bitblt">.</include>
        <library>kernel32</library>
        <library>gdi32</library>
        <file>bitblt.c</file>
+       <file>bitblt.rc</file>
 </module>