hehehehe, i have drawn an image named "title.jpg" an icon named "dc.ico" and a cursor named "cursor1.cur", and i cant find a single tutorial on how to load these images in without 500 lines of extra code. there was this one example in my book, but its a whole program dedicated to showing this one image and it has 500 lines of code! i dont want this...thee has got to be n easyer way, i just want the vertical image i drawn to appear on the left of my program at the coords x = 0, y = 0. as for the icon and cursor, how do i load thos, what do i put in my resource script, my header and what do i change

to? all 3 of the images are in a folder called "images", just thught you might want to know that.

01-06-2003

Ken Fitlike

Use LoadImage for loading your cursors, icons and bitmaps. With DevC++( mingw) forget jpegs; use a bitmap instead.

For just about any other win32 compiler you can use OleLoadPicture for jpegs or get and use gdiplus. Search this board for more information on either of these (which you will not, as far as i'm aware, be able to use with mingw (DevC++)).

edit: actually there may be third party image libraries available for use with mingw. Perhaps someone else will be able to provide more information on this.

wc.lpszMenuName = MAKEINTRESOURCE(IDR_MYMENU);
wc.hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MYICON));
wc.hIconSm = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MYICON));
wc.hCursor = LoadCursor(NULL, IDC_ARROW); //make a cursor just the same as the other resources i showed an example with

and there you have it, any questions?

01-07-2003

DarkViper

yeah, when i tried to get my bitmap to show, it gave me alot of errors. saying that Title.width = bm.bmWidth was unarguable. ?!?! im like, wtf?

but the cursor works and so does the icon, and for that i think you. those were the vital things.

uhh...how do i make the cursor change to another custom cursor when it goes over an Edit field, actually you know what, speaking of the edit field, forget the cusor thing, thats not important right now, but how do i change the total amount of text an edit field can have? and can you give me an example the same way you did :D that is what i understand.