Results 1 to 6 of 6

Thread: Load A PIC

  1. #1

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post Load A PIC

    I've added a Picture(bitmap) to my dialog. How come when the dialog loads, the picture is not there? But in the resource editor it's there.

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  2. #2
    Junior Member
    Join Date
    Dec 2001
    Location
    Melbourne - Australia
    Posts
    27
    post up your code, ill have a look at it

    bruce

  3. #3

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post No code

    There's no code for loading a pic... I just put a BITMAP onto my Dialog. Also
    Code:
    HWND Rec_Wnd(void){
    #define LARGE 1024
    	HWND RETURN;
    	char OLD[LARGE],NEW[LARGE];
    
    	//BEGINS:
    	GetConsoleTitle(OLD,LARGE);
    	
    	SetDlgItemText(dlg,TEXT1,RETURN);
    
    	return(RETURN);
    }
    How do I convert HWND to CHAR?

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  4. #4
    Junior Member
    Join Date
    Dec 2001
    Location
    Melbourne - Australia
    Posts
    27

    Unhappy im way out of my league here

    i probably should not have even looked at this thread. i know nothing about C++ dialog. while you're here, could you explain what HWND is anyway? i kind of understand its a handle for a window, but what does it do? and why convert it to char?

    bruce

  5. #5

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post Major

    Plays such an majorly role in VC++, specially in Win32. I'm 13, if you feel any thing I can help, contact me at YIM or AIM, my id is in my profile. Wish you a Merry Christmas && Happy New Year.

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    hmmm....
    Do you know a little about the syntax of .rc files? Can you post the part where your dialog is declared? If not, upload the whole .rc file, I'll look at it.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width