Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert a string into a date Pin
David Crow13-Aug-03 5:59
David Crow13-Aug-03 5:59 
GeneralRe: convert a string into a date Pin
Steve S13-Aug-03 23:24
Steve S13-Aug-03 23:24 
GeneralUsing PBS_SMOOTH Pin
keegan13-Aug-03 4:24
keegan13-Aug-03 4:24 
Generaldoh Pin
keegan13-Aug-03 4:54
keegan13-Aug-03 4:54 
GeneralRe: Using PBS_SMOOTH Pin
Ryan Binns13-Aug-03 5:03
Ryan Binns13-Aug-03 5:03 
GeneralChanging pixel color on a bitmap Pin
vcplusplus13-Aug-03 4:23
vcplusplus13-Aug-03 4:23 
GeneralRe: Changing pixel color on a bitmap Pin
Ryan Binns13-Aug-03 5:05
Ryan Binns13-Aug-03 5:05 
GeneralRe: Changing pixel color on a bitmap Pin
vcplusplus13-Aug-03 6:40
vcplusplus13-Aug-03 6:40 
I need to get the current color before I use SetPixel(..), but I
cannot get GetPixel() to work. pDc->GetPixel() returns -1.

Maybe I am missing something.

Note:
m_ExitButtonCtrl is of type CButton.
hbmButtonExit is of type HBITMAP.

void CMyFormView::OnInitialUpdate() 
{
   CFormView::OnInitialUpdate();

    // Load BitMap
    hbmButtonExit = ::LoadBitmap(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_BUTTON_EXIT));
    if (hbmButtonExit != NULL)
    {
       m_ExitButtonCtrl.SetBitmap(hbmButtonExit);
       CDC *pDc = m_ExitButtonCtrl.GetDC();
       if (pDc != NULL)
       {
           for (INT nX = 0; nX < 69; nX++)
           {
               for (INT nY = 0; nY < 47; nY++)
               {
                  COLORREF OrgColor = pDc->GetPixel(nX, nY);
               }
           }
       }
    }
    return;
}

GeneralRe: Changing pixel color on a bitmap Pin
Ryan Binns14-Aug-03 0:09
Ryan Binns14-Aug-03 0:09 
GeneralRe: Changing pixel color on a bitmap Pin
vcplusplus14-Aug-03 2:37
vcplusplus14-Aug-03 2:37 
GeneralRe: Changing pixel color on a bitmap Pin
Ryan Binns14-Aug-03 3:10
Ryan Binns14-Aug-03 3:10 
GeneralUnresolved external symbol... Pin
Florin Ochiana13-Aug-03 3:35
Florin Ochiana13-Aug-03 3:35 
GeneralRe: Unresolved external symbol... Pin
Serge Krynine13-Aug-03 3:50
Serge Krynine13-Aug-03 3:50 
GeneralRe: Unresolved external symbol... Pin
Florin Ochiana13-Aug-03 4:29
Florin Ochiana13-Aug-03 4:29 
GeneralXcvData and adding a standard IP port Pin
Navin13-Aug-03 3:29
Navin13-Aug-03 3:29 
GeneralRe: XcvData and adding a standard IP port Pin
Navin13-Aug-03 5:34
Navin13-Aug-03 5:34 
GeneralI need to refer to the Microsoft&#8217;s non-conformance issues Pin
Anonymous13-Aug-03 3:22
Anonymous13-Aug-03 3:22 
GeneralRe: I need to refer to the Microsoft&#8217;s non-conformance issues Pin
Navin13-Aug-03 3:32
Navin13-Aug-03 3:32 
GeneralRe: I need to refer to the Microsoft&#8217;s non-conformance issues Pin
Serge Krynine13-Aug-03 3:46
Serge Krynine13-Aug-03 3:46 
GeneralRe: I need to refer to the Microsoft&#8217;s non-conformance issues Pin
Tim Smith13-Aug-03 3:50
Tim Smith13-Aug-03 3:50 
GeneralRe: I need to refer to the Microsoft&#8217;s non-conformance issues Pin
Serge Krynine13-Aug-03 3:54
Serge Krynine13-Aug-03 3:54 
Generalreading a text file Pin
VC++ Beginner13-Aug-03 2:28
VC++ Beginner13-Aug-03 2:28 
GeneralRe: reading a text file Pin
Anonymous13-Aug-03 2:52
Anonymous13-Aug-03 2:52 
GeneralRe: reading a text file Pin
Andrew Walker13-Aug-03 3:28
Andrew Walker13-Aug-03 3:28 
GeneralRe: reading a text file Pin
keegan13-Aug-03 3:34
keegan13-Aug-03 3:34 

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.