Results 1 to 2 of 2

Thread: problems again!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    95

    Angry

    Hi. how would i change the text of an object (label) WITHOUT creating a member variable for it?

    thanks

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try this:
    Code:
    LRESULT lRes;
    char* myStr = "My String";
    
    lRes = SendDlgItemMessage(hWnd_Main, IDC_STATIC, WM_SETTEXT, 0, (LPARAM)myStr);
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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