Click here to Skip to main content
15,922,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAdding controls to the task bar?? Pin
Anonymous27-Apr-05 1:38
Anonymous27-Apr-05 1:38 
QuestionHow do i disable mouse wheel in comboBox (MFC) Pin
Yanshof27-Apr-05 1:35
Yanshof27-Apr-05 1:35 
GeneralBinary value of a pixel from a bitmap Pin
VPNampoothiri27-Apr-05 1:20
VPNampoothiri27-Apr-05 1:20 
GeneralRe: Binary value of a pixel from a bitmap Pin
Chris Losinger27-Apr-05 1:29
professionalChris Losinger27-Apr-05 1:29 
GeneralRe: Binary value of a pixel from a bitmap Pin
ThatsAlok27-Apr-05 2:16
ThatsAlok27-Apr-05 2:16 
GeneralRe: Binary value of a pixel from a bitmap Pin
Roger Allen27-Apr-05 5:51
Roger Allen27-Apr-05 5:51 
GeneralRe: Binary value of a pixel from a bitmap Pin
ThatsAlok27-Apr-05 23:26
ThatsAlok27-Apr-05 23:26 
GeneralRe: Binary value of a pixel from a bitmap Pin
Roger Allen28-Apr-05 2:48
Roger Allen28-Apr-05 2:48 
A bitmap only needs to be selected into a DC for you to access it. Here is some example code extracted from my OD menu class:

COLORREF backgroundColour = 0;
{
    CDC dcCopy;
    dcCopy.CreateCompatibleDC(NULL);
    dcCopy.SaveDC();
    dcCopy.SelectObject(&toolbarBitmap);
    backgroundColour = dcCopy.GetPixel(0, 0);               // toolbars use pixel 0,0 of image 0 as the background colour
    dcCopy.RestoreDC(-1);
    dcCopy.DeleteDC();
}


If you vote me down, my score will only get lower
GeneralRe: Binary value of a pixel from a bitmap Pin
ThatsAlok28-Apr-05 2:55
ThatsAlok28-Apr-05 2:55 
GeneralWIndows XP Pin
densitet27-Apr-05 0:44
densitet27-Apr-05 0:44 
GeneralWhy OpenDocument Failed Pin
zahid_ash27-Apr-05 0:15
zahid_ash27-Apr-05 0:15 
GeneralRe: Why OpenDocument Failed Pin
Chris Losinger27-Apr-05 1:37
professionalChris Losinger27-Apr-05 1:37 
GeneralRe: Why OpenDocument Failed Pin
zahid_ash27-Apr-05 2:10
zahid_ash27-Apr-05 2:10 
GeneralRe: Why OpenDocument Failed Pin
Chris Losinger27-Apr-05 2:13
professionalChris Losinger27-Apr-05 2:13 
GeneralRe: Why OpenDocument Failed Pin
zahid_ash27-Apr-05 2:28
zahid_ash27-Apr-05 2:28 
GeneralRe: Why OpenDocument Failed Pin
Chris Losinger27-Apr-05 3:15
professionalChris Losinger27-Apr-05 3:15 
GeneralRe: Why OpenDocument Failed Pin
zahid_ash27-Apr-05 19:42
zahid_ash27-Apr-05 19:42 
GeneralRe: Why OpenDocument Failed Pin
Chris Losinger28-Apr-05 1:31
professionalChris Losinger28-Apr-05 1:31 
GeneralRe: Why OpenDocument Failed Pin
Ravi Bhavnani27-Apr-05 6:03
professionalRavi Bhavnani27-Apr-05 6:03 
GeneralExcel Class Object in a C++ component Pin
AnuradhaCpp27-Apr-05 0:15
AnuradhaCpp27-Apr-05 0:15 
GeneralRe: Excel Class Object in a C++ component Pin
Larry J. Siddens27-Apr-05 8:40
Larry J. Siddens27-Apr-05 8:40 
GeneralConsole Full Screen Mode Pin
Aqueel26-Apr-05 23:46
Aqueel26-Apr-05 23:46 
GeneralRe: Console Full Screen Mode Pin
stolid_rock27-Apr-05 0:41
stolid_rock27-Apr-05 0:41 
GeneralProxy authentication Pin
Geert van Horrik26-Apr-05 23:44
Geert van Horrik26-Apr-05 23:44 
Questionvirtual function override intended? Pin
greekgoddj26-Apr-05 23:15
greekgoddj26-Apr-05 23:15 

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.