Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popup menu question Pin
Cedric Moonen11-Aug-03 22:46
Cedric Moonen11-Aug-03 22:46 
Generallanguage classes for VC++6.0 Pin
Andrei Druta11-Aug-03 22:02
Andrei Druta11-Aug-03 22:02 
GeneralRe: language classes for VC++6.0 Pin
Steve S12-Aug-03 0:37
Steve S12-Aug-03 0:37 
GeneralRe: language classes for VC++6.0 Pin
Andrei Druta12-Aug-03 2:31
Andrei Druta12-Aug-03 2:31 
GeneralRe: language classes for VC++6.0 Pin
David Crow12-Aug-03 4:25
David Crow12-Aug-03 4:25 
GeneralRe: language classes for VC++6.0 Pin
YaronNir12-Aug-03 1:21
YaronNir12-Aug-03 1:21 
GeneralRe: language classes for VC++6.0 Pin
Andrei Druta12-Aug-03 2:33
Andrei Druta12-Aug-03 2:33 
GeneralDrawing on DialogBox Pin
El'Cachubrey11-Aug-03 21:57
El'Cachubrey11-Aug-03 21:57 
Hi all

I try to draw on dialog surfaces use CDC class this my snippet of code

..OnPaint(...){
...
COLORREF cr = 0x00009900;
CPaintDC dc(this);
COLORREF orig_col = dc.GetPixel(5,5);
RECT rc = {0,0,100,100};
dc.FillSolidRect(&rc,cr);
COLORREF dest_col = dc.GetPixel(5,5);

}

I have result of that routines
orig_col = 0x00c0c0c0
dest_col = 0x00009800

more distinctly in binary view:
orig_col = 0000.0000.1100.0000.1100.0000.1100.0000
dest_col = 0000.0000.0000.0000.1001.1000.0000.0000
Points here for my convinet.

WHy its so ???
Or how i can fill my dialog surfaces so what when i get pixel from this surface after this action ,color of this pixel will be equal filled color.I.e. i wish what routine
COLORREF dest_col = dc.GetPixel(5,5); retrieved me
0x009900 value.
I know what when i fill any surface ,original color of one mixed with filled color and this mixed mode controlling by SetROP2 function but i cant realize MSDN suggestions this complicated for me.Please anybody can give me link or simplcity recognized of this trouble.

Thanks.
Sorry for bad eanglish.Confused | :confused:




Generalnonblocking server and FD_WRITE Pin
Rickard Andersson2011-Aug-03 21:03
Rickard Andersson2011-Aug-03 21:03 
GeneralRe: nonblocking server and FD_WRITE Pin
geo_m11-Aug-03 22:29
geo_m11-Aug-03 22:29 
GeneralRe: nonblocking server and FD_WRITE Pin
Rickard Andersson2011-Aug-03 22:44
Rickard Andersson2011-Aug-03 22:44 
GeneralRe: nonblocking server and FD_WRITE Pin
geo_m12-Aug-03 0:53
geo_m12-Aug-03 0:53 
GeneralRe: nonblocking server and FD_WRITE Pin
Jörgen Sigvardsson12-Aug-03 13:43
Jörgen Sigvardsson12-Aug-03 13:43 
GeneralRe: nonblocking server and FD_WRITE Pin
Rickard Andersson2012-Aug-03 20:58
Rickard Andersson2012-Aug-03 20:58 
GeneralRe: nonblocking server and FD_WRITE Pin
Jörgen Sigvardsson12-Aug-03 22:16
Jörgen Sigvardsson12-Aug-03 22:16 
GeneralRe: nonblocking server and FD_WRITE Pin
Rickard Andersson2012-Aug-03 23:00
Rickard Andersson2012-Aug-03 23:00 
GeneralRe: nonblocking server and FD_WRITE Pin
Jörgen Sigvardsson12-Aug-03 23:02
Jörgen Sigvardsson12-Aug-03 23:02 
GeneralKeyBoard & Mouse hooking Pin
WzR11-Aug-03 20:27
WzR11-Aug-03 20:27 
GeneralRe: KeyBoard & Mouse hooking Pin
Rage11-Aug-03 21:19
professionalRage11-Aug-03 21:19 
GeneralMFC DLL Distribution Question Pin
John Clump11-Aug-03 19:34
John Clump11-Aug-03 19:34 
GeneralRe: MFC DLL Distribution Question Pin
HPSI11-Aug-03 20:02
HPSI11-Aug-03 20:02 
GeneralRe: MFC DLL Distribution Question Pin
David Crow12-Aug-03 4:27
David Crow12-Aug-03 4:27 
Generalviewing an MS-Access Report without MS-Access Pin
sagmam11-Aug-03 18:59
sagmam11-Aug-03 18:59 
GeneralRe: viewing an MS-Access Report without MS-Access Pin
wb11-Aug-03 19:16
wb11-Aug-03 19:16 
GeneralHelp to understand these codes! Pin
colormyiris11-Aug-03 18:32
colormyiris11-Aug-03 18:32 

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.