Click here to Skip to main content
15,915,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Checking net connection on a machine Pin
Hamid_RT13-Oct-07 8:28
Hamid_RT13-Oct-07 8:28 
QuestionRe: Checking net connection on a machine Pin
Hamid_RT20-Oct-07 19:35
Hamid_RT20-Oct-07 19:35 
AnswerRe: Checking net connection on a machine Pin
chandu00412-Oct-07 21:57
chandu00412-Oct-07 21:57 
QuestionDraw a transparent rectangle Pin
$uresh $hanmugam12-Oct-07 18:52
$uresh $hanmugam12-Oct-07 18:52 
AnswerRe: Draw a transparent rectangle Pin
led mike12-Oct-07 19:11
led mike12-Oct-07 19:11 
GeneralRe: Draw a transparent rectangle Pin
Mark Salsbery13-Oct-07 7:22
Mark Salsbery13-Oct-07 7:22 
AnswerRe: Draw a transparent rectangle Pin
chandu00412-Oct-07 19:58
chandu00412-Oct-07 19:58 
GeneralRe: Draw a transparent rectangle Pin
$uresh $hanmugam12-Oct-07 22:29
$uresh $hanmugam12-Oct-07 22:29 
i'm having a CBitmap object, which will contain 2546x3288 size image,loading from bmp file.i need to draw a rectangle on that image witout lossing of background image...

void SFormViewer::OnPaint()<br />
{<br />
    CPaintDC dc(this); // device context for painting<br />
    // TODO: Add your message handler code here<br />
    // Do not call CWnd::OnPaint() for painting messages<br />
<br />
    if(flag_iInitPaint)<br />
    {<br />
        CRect rClient;<br />
        GetClientRect(&rClient);<br />
<br />
        CPen m_Pen;<br />
        m_Pen.CreatePen(PS_SOLID,2,RGB(250,0,0));<br />
<br />
        CDC m_memDC;<br />
        m_memDC.CreateCompatibleDC(&dc);<br />
        m_memDC.SelectObject(&m_FormImage);<br />
        m_memDC.SelectObject(&m_Pen);<br />
        m_memDC.SetBkMode(TRANSPARENT);<br />
         <br />
        r_SelectedRect.SetRect(m_iShownImgTopX + p_iTopLeft.x, m_iShownImgTopY + p_iTopLeft.y, m_iShownImgTopX + p_iBottomRight.x, m_iShownImgTopY + p_iBottomRight.y);<br />
<br />
        if(flag_Scroll == 0)<br />
        {<br />
            m_memDC.Rectangle(r_SelectedRect);<br />
           <br />
        }<br />
<br />
        dc.BitBlt(0,0,rClient.Width(),rClient.Height(),&m_memDC,m_iShownImgTopX,m_iShownImgTopY,SRCCOPY);<br />
       <br />
    }<br />
}

GeneralRe: Draw a transparent rectangle Pin
chandu00413-Oct-07 0:04
chandu00413-Oct-07 0:04 
GeneralRe: Draw a transparent rectangle Pin
Mark Salsbery13-Oct-07 7:19
Mark Salsbery13-Oct-07 7:19 
GeneralRe: Draw a transparent rectangle Pin
Mark Salsbery13-Oct-07 7:33
Mark Salsbery13-Oct-07 7:33 
AnswerRe: Draw a transparent rectangle Pin
Hamid_RT12-Oct-07 20:50
Hamid_RT12-Oct-07 20:50 
QuestionAcesssing printer Pin
Deepu Antony12-Oct-07 18:46
Deepu Antony12-Oct-07 18:46 
AnswerRe: Acesssing printer Pin
led mike12-Oct-07 19:05
led mike12-Oct-07 19:05 
AnswerRe: Acesssing printer Pin
Hamid_RT12-Oct-07 20:53
Hamid_RT12-Oct-07 20:53 
QuestionLibrary including problem Pin
ashishbhatt12-Oct-07 17:42
ashishbhatt12-Oct-07 17:42 
AnswerRe: Library including problem Pin
zakkas248312-Oct-07 18:24
zakkas248312-Oct-07 18:24 
GeneralRe: Library including problem Pin
ashishbhatt12-Oct-07 18:42
ashishbhatt12-Oct-07 18:42 
GeneralRe: Library including problem Pin
zakkas248312-Oct-07 18:58
zakkas248312-Oct-07 18:58 
Questionabout data packet Pin
Michel_Huang12-Oct-07 15:40
Michel_Huang12-Oct-07 15:40 
AnswerRe: about data packet Pin
chandu00412-Oct-07 17:39
chandu00412-Oct-07 17:39 
AnswerRe: about data packet Pin
led mike12-Oct-07 18:51
led mike12-Oct-07 18:51 
GeneralRe: about data packet Pin
Michel_Huang14-Oct-07 16:53
Michel_Huang14-Oct-07 16:53 
AnswerRe: about data packet Pin
Mike Dimmick14-Oct-07 11:00
Mike Dimmick14-Oct-07 11:00 
GeneralRe: about data packet Pin
Michel_Huang14-Oct-07 16:53
Michel_Huang14-Oct-07 16:53 

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.