c++ - How to make the color of the parent and child window same? -


i hardly know windows.h library, have make application using (long story). anyways appreciate if can patient me on one. child window contains static text displayed on parent window, colors different how make them same? have tried googling don't seem hang of anything. oh , using c++.

i saw on msdn

hresult enablethemedialogtexture( _in_ hwnd hwnd, _in_ dword dwflags );

but not sure use it.

my handle child window start.

hresult enablethemedialogtexture(start,etdt_disable); 

i tried errors such

[error] 'etdt_disable' not declared in scope

[error] expression list treated compound expression in initializer [-fpermissive]

i have backgroud as

    wc.hbrbackground = (hbrush)(color_gradientinactivecaption+1); 

my child window

switch(message)  {     case wm_create:      start = createwindow("static","some text here",     ws_visible|ws_child,200,100,300,100,hwnd,null,null,null);            break;     case wm_destroy: {         postquitmessage(0);         break;     } 

my parent window

hwnd = createwindowex(ws_ex_clientedge,"windowclass","                                                                                        shopaholic",     ws_visible|ws_sysmenu| ws_minimizebox,     cw_usedefault, /* x */     cw_usedefault, /* y */     740, /* width */     580, /* height */     null,null,hinstance,null); 

handle wm_ctlcolorstatic message. (at end of page there's example you're asking.)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -