Click here to Skip to main content
15,906,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to visible the background buttons when I change the back ground color Pin
S_a_n15-Jan-06 18:20
S_a_n15-Jan-06 18:20 
AnswerRe: How to visible the background buttons when I change the back ground color Pin
Owner drawn15-Jan-06 18:27
Owner drawn15-Jan-06 18:27 
GeneralRe: How to visible the background buttons when I change the back ground color Pin
S_a_n15-Jan-06 18:44
S_a_n15-Jan-06 18:44 
GeneralDon't use FillRect() there Pin
Owner drawn15-Jan-06 18:47
Owner drawn15-Jan-06 18:47 
GeneralRe: Don't use FillRect() Pin
S_a_n15-Jan-06 18:51
S_a_n15-Jan-06 18:51 
GeneralRe: Don't use FillRect() Pin
Owner drawn15-Jan-06 18:55
Owner drawn15-Jan-06 18:55 
GeneralRe: Don't use FillRect() Pin
S_a_n15-Jan-06 19:42
S_a_n15-Jan-06 19:42 
GeneralRe: Don't use FillRect() Pin
Owner drawn15-Jan-06 19:50
Owner drawn15-Jan-06 19:50 
Take a look at AfxRegisterClass. This will work.

// Register your unique class name that you wish to use
    WNDCLASS wndcls;

    memset(&wndcls, 0, sizeof(WNDCLASS));   // start with NULL
                                            // defaults

    wndcls.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;

    //you can specify your own window procedure
    wndcls.lpfnWndProc = ::DefWindowProc;
    wndcls.hInstance = AfxGetInstanceHandle();
    wndcls.hIcon = LoadIcon(IDR_MAINFRAME); // or load a different icon
    wndcls.hCursor = LoadCursor( IDC_ARROW );
    <code>wndcls.hbrBackground = (HBRUSH) GetStockObject(LTGRAY_BRUSH);</code>//here you can change
    wndcls.lpszMenuName = NULL;

    // Specify your own class name for using FindWindow later
    wndcls.lpszClassName = _T("MyNewClass");

    // Register the new class and exit if it fails
    if(<code>!AfxRegisterClass(&wndcls)</code>)
    {
       TRACE("Class Registration Failed\n");
       return FALSE;
    }


Jesus LovesRose | [Rose]
<marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner DrawnRose | [Rose]
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is LordRose | [Rose]

GeneralRe: Don't use FillRect() Pin
S_a_n15-Jan-06 20:03
S_a_n15-Jan-06 20:03 
GeneralRe: How to visible the background buttons when I change the back ground color Pin
Stephen Hewitt15-Jan-06 18:57
Stephen Hewitt15-Jan-06 18:57 
QuestionThere isn't any error when access private member variable directly in copy constructor... Pin
followait15-Jan-06 17:51
followait15-Jan-06 17:51 
AnswerRe: There isn't any error when access private member variable directly in copy constructor... Pin
Saurabh.Garg15-Jan-06 18:03
Saurabh.Garg15-Jan-06 18:03 
AnswerRe: There isn't any error when access private member variable directly in copy constructor... Pin
Sebastian Schneider15-Jan-06 22:48
Sebastian Schneider15-Jan-06 22:48 
GeneralRe: There isn't any error when access private member variable directly in copy constructor... Pin
Owner drawn16-Jan-06 17:04
Owner drawn16-Jan-06 17:04 
Answermany thanks Pin
followait16-Jan-06 15:11
followait16-Jan-06 15:11 
Questionrelated to Socket Pin
baldha rakesh15-Jan-06 17:21
baldha rakesh15-Jan-06 17:21 
AnswerRe: related to Socket Pin
kevincwong15-Jan-06 18:20
kevincwong15-Jan-06 18:20 
AnswerRe: related to Socket Pin
sunit515-Jan-06 19:28
sunit515-Jan-06 19:28 
AnswerRe: related to Socket Pin
Prakash Nadar15-Jan-06 19:30
Prakash Nadar15-Jan-06 19:30 
AnswerRe: related to Socket Pin
vikas amin16-Jan-06 0:47
vikas amin16-Jan-06 0:47 
Questioncall FindFirstPrinterChangeNotification() Get Error 997? Pin
szcococut15-Jan-06 16:30
szcococut15-Jan-06 16:30 
AnswerRe: call FindFirstPrinterChangeNotification() Get Error 997? Pin
Prakash Nadar15-Jan-06 19:32
Prakash Nadar15-Jan-06 19:32 
GeneralRe: call FindFirstPrinterChangeNotification() Get Error 997? Pin
szcococut15-Jan-06 20:11
szcococut15-Jan-06 20:11 
QuestionInvisible/Visible Button Pin
DanYELL15-Jan-06 13:05
DanYELL15-Jan-06 13:05 
AnswerRe: Invisible/Visible Button Pin
Maximilien15-Jan-06 13:54
Maximilien15-Jan-06 13:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.