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

Thread: Icons

  1. #1
    Guest

    Icons

    How do you change the icon in a window's title bar?


  2. #2
    Join Date
    May 1999
    Location
    Maharashtra, INDIA
    Posts
    4

    Re: Icons

    Assign the desired icon to IDR_MAINFRAME at design time or if u want to set it at run time then
    HICON hIconNew = AfxGetApp()->LoadIcon( IDI_ICON1);
    if( hIconNew)
    {
    AfxGetApp()->m_pMainWnd->SetIcon( hIconNew, TRUE);
    }


    Rajesh M. Jangid
    C,C++,VC++,Java(C plus plus minus)

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