Loading Images1
2
3
filename$ = "\\My Documents\\Image.bmp";
img$ = LoadImage(NULL, filename$, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
delete(img$); // Once done with it
3 lines; 1 keywds; 2 nums; 14 ops; 1 strs; 1 coms Syntactic Coloring v0.4 - Dan East
1
2
strCombo$ = Wide("Item #" + intCnt$);
SendMessage(c$, CB_ADDSTRING, 0, &strCombo$);
2 lines; 0 keywds; 1 nums; 12 ops; 1 strs; 0 coms Syntactic Coloring v0.4 - Dan East
1
SendMessage(c$, CB_ADDSTRING, 0, "Item #" + intCnt$);
1 lines; 0 keywds; 1 nums; 7 ops; 1 strs; 0 coms Syntactic Coloring v0.4 - Dan East
1
2
#declareapi SHLoadDIBitmap "aygshell.dll" SHLoadDIBitmap 1 1
#declare BitBlt apidll BitBlt 9 1
2 lines; 0 keywds; 4 nums; 0 ops; 1 strs; 0 coms Syntactic Coloring v0.4 - Dan East
1
2
3
4
5
b$ = SHloadDIBitmap("\\My Documents\\MyFile.bmp");
hdc$ = GetDC(hWnd$);
hdcMem$ = CreateCompatibleDC(hdc$);
hOldSel$ = SelectObject(hdcMem$,b$);
BitBlt(hdc$,rect.left$,rect.top$,rect.right$,rect.bottom$,hdcMem$,0,0,SRCCOPY);
5 lines; 0 keywds; 2 nums; 32 ops; 1 strs; 0 coms Syntactic Coloring v0.4 - Dan East
kornalius wrote:I will still try to figure out why your LoadImage in the code was generating an error.