Click here to Skip to main content
14,387,532 members

C / C++ / MFC

 
GeneralRe: How to load data/text into a TextBox Pin
Hamid_RT4-Aug-06 3:36
MemberHamid_RT4-Aug-06 3:36 
AnswerRe: How to load data/text into a TextBox Pin
David Crow4-Aug-06 3:38
MemberDavid Crow4-Aug-06 3:38 
GeneralRe: How to load data/text into a TextBox Pin
Rip Kirby4-Aug-06 3:44
MemberRip Kirby4-Aug-06 3:44 
GeneralRe: How to load data/text into a TextBox Pin
David Crow4-Aug-06 3:56
MemberDavid Crow4-Aug-06 3:56 
QuestionDraw a cricle on bitmap image Pin
ravi04794-Aug-06 1:51
Memberravi04794-Aug-06 1:51 
AnswerRe: Draw a cricle on bitmap image Pin
Sarath C4-Aug-06 2:35
MemberSarath C4-Aug-06 2:35 
AnswerRe: Draw a cricle on bitmap image Pin
Hamid_RT4-Aug-06 2:56
MemberHamid_RT4-Aug-06 2:56 
GeneralRe: Draw a cricle on bitmap image Pin
ravi04794-Aug-06 3:08
Memberravi04794-Aug-06 3:08 
Hi Sarath,

Following is the code ... I'm new to VC++/MFC.

m_hBmpNew = (HBITMAP) LoadImage(AfxGetInstanceHandle(),
"bng4.bmp",IMAGE_BITMAP,
0, // desired width
0, // desired height
LR_LOADFROMFILE);

if( m_hBmpNew == NULL ){
AfxMessageBox("Load Image Failed");}

// put the HBITMAP info into the CBitmap (but not the bitmap itself)
else{
m_st1.GetClientRect( &rectStaticClient );
rectStaticClient.NormalizeRect();
m_size.cx=rectStaticClient.Size().cx;
m_size.cy=rectStaticClient.Size().cy;
m_size.cx = rectStaticClient.Width(); // zero based
m_size.cy = rectStaticClient.Height(); // zero based
// Convert to screen coordinates using static as base,
// then to DIALOG (instead of static) client coords
// using dialog as base
m_st1.ClientToScreen( &rectStaticClient );
ScreenToClient( &rectStaticClient);
InvalidateRect(&rectStaticClient);

// Added to draw a rectangle
CCLientDC pDC(this);
pDC.MoveTo(100,100);
pDC.Rectangle(100,100,110,110);


i'm loading bitmap image using LoadImage(). Rectangle image is coming underneath of the bitmap image.




Thanks & regards
Ravi
GeneralRe: Draw a cricle on bitmap image Pin
Hamid_RT4-Aug-06 3:36
MemberHamid_RT4-Aug-06 3:36 
GeneralRe: Draw a cricle on bitmap image Pin
ravi04794-Aug-06 3:49
Memberravi04794-Aug-06 3:49 
GeneralRe: Draw a cricle on bitmap image Pin
Hamid_RT4-Aug-06 4:35
MemberHamid_RT4-Aug-06 4:35 
GeneralRe: Draw a cricle on bitmap image Pin
Sarath C4-Aug-06 5:57
MemberSarath C4-Aug-06 5:57 
GeneralRe: Draw a cricle on bitmap image Pin
ravi04794-Aug-06 20:44
Memberravi04794-Aug-06 20:44 
QuestionProblem in Accessing Main Menu [modified] Pin
gloriousgopi4-Aug-06 1:51
Membergloriousgopi4-Aug-06 1:51 
AnswerRe: Problem in Accessing Main Menu Pin
BadJerry10-May-07 6:19
MemberBadJerry10-May-07 6:19 
QuestionHow Can i Connect to a HTTPS Web Server in VC++ ? Pin
gloriousgopi4-Aug-06 1:38
Membergloriousgopi4-Aug-06 1:38 
AnswerRe: How Can i Connect to a HTTPS Web Server in VC++ ? Pin
Milton Karimbekallil4-Aug-06 1:45
MemberMilton Karimbekallil4-Aug-06 1:45 
GeneralRe: How Can i Connect to a HTTPS Web Server in VC++ ? Pin
gloriousgopi4-Aug-06 1:59
Membergloriousgopi4-Aug-06 1:59 
GeneralRe: How Can i Connect to a HTTPS Web Server in VC++ ? Pin
Milton Karimbekallil4-Aug-06 2:14
MemberMilton Karimbekallil4-Aug-06 2:14 
GeneralRe: How Can i Connect to a HTTPS Web Server in VC++ ? Pin
gloriousgopi4-Aug-06 5:06
Membergloriousgopi4-Aug-06 5:06 
QuestionAdd multiple CView/CFormView to a CView? Pin
Tengil994-Aug-06 1:10
MemberTengil994-Aug-06 1:10 
AnswerRe: Add multiple CView/CFormView to a CView? Pin
Milton Karimbekallil4-Aug-06 2:10
MemberMilton Karimbekallil4-Aug-06 2:10 
GeneralRe: Add multiple CView/CFormView to a CView? Pin
Tengil994-Aug-06 3:14
MemberTengil994-Aug-06 3:14 
GeneralRe: Add multiple CView/CFormView to a CView? Pin
Tengil994-Aug-06 3:29
MemberTengil994-Aug-06 3:29 
QuestionRe: Add multiple CView/CFormView to a CView? Pin
David Crow4-Aug-06 3:43
MemberDavid Crow4-Aug-06 3:43 

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.