CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Threaded View

  1. #1
    Join Date
    Sep 2003
    Posts
    280

    remove the background of static text

    As showing in attached picture, I want to remove the background of static text ("Quality : 100" and "Resoultion...").
    The program I write is following:
    Code:
    // Print Prompt Text
             hwndStaticTextQuality = CreateWindowEx(0L, "STATIC", NULL, WS_CHILD | WS_VISIBLE | ES_LEFT , 
    		      FrameX+5, FrameY, 80, 15, hwnd, (HMENU) ID_STATIC_LABEL_QUALITY, GetModuleHandle(NULL), 0 );
             sprintf(prompt_text,"Quality:%d",QUALITY_DEFAULT);
             SetWindowText(hwndStaticTextQuality, prompt_text);
    
             hwndStaticTextSpatial = CreateWindowEx(0L, "STATIC", NULL, WS_CHILD | WS_VISIBLE | ES_LEFT , 
    		      FrameX+5, FrameY+36, 100, 15, hwnd, (HMENU) ID_STATIC_LABEL_SPATIAL, GetModuleHandle(NULL), 0 );
    
             sprintf(prompt_text,"Resolution:1/%d",SPATIAL_DEFAULT);
             SetWindowText(hwndStaticTextSpatial, prompt_text);
    What should I modify?
    Thank you.
    Attached Images Attached Images

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

Featured