--%>

Load Bitmap at Dialog background in an MFC application

Explain the way to load Bitmap at Dialog background within an MFC application?

E

Expert

Verified

Within OnInit Dialog:

1. Create CBitmap through the bitmap.
2. Generate a memory DC ( as CDC)
3. Place the CBitmap in the memory DC (utilize CDC::SelectObject function)
Within OnPaint:
4. Find your dialog DC (as CDialog::GetDC)
5. Do StretchBlt or BitBlt on dialog DC along with memory DC as source DC (it will paint the bitmap upon your dialog).
6. Release dialog DC (by ReleaseDC function)

   Related Questions in Financial Management

  • Q : Calculate annual mortgage payment

    Question 1 You just took out a variable-rate mortgage on your new home. The mortgage value is $100,000, the term is 30 years, and initially the interest rate is 8%. The interest rate is fixed for

  • Q : How a firm can estimate the optimal

    A corporation can have too much working capital. Explain. Explain how can a firm estimate the optimal level of current assets.

  • Q : Describe criteria for a good

    Describe criteria for a ‘good' international monetary system.A good international monetary system have to provide (I) adequate liquidity to the world economy, (ii) s

  • Q : Solving the problem of win32 application

    Within win32 application when defining a variable of CString then this provides the error "CString:Undeclared identifier" so how to solve the problems? What headerfile require including?

  • Q : What is actual volatility What is

    What is actual volatility? Answer: Actual volatility is the σ that goes in the Black–Scholes partial differential equation.

  • Q : Illustrates that how is all money far

    Should you place all your money in a stock which has low risk but also low expected return, or one along with high expected return but that is far riskier or maybe divide your money among the two?

  • Q : Define back-to-back loan Define

    Define back-to-back loan. A back-to-back loan involves two parties only. One MNC borrows and re-lends directly to another.

  • Q : Illustrates an example an arbitrage

    Illustrates an example an arbitrage opportunity?

  • Q : What are random factors for

    What are random factors for risk-neutral drifts?

  • Q : Illustrates a swap dealer Illustrates a

    Illustrates a swap dealer. A swap dealer is a market maker of swaps and supposes a risk position in matching opposite sides of a swap and in assuring that each of counterparty fulfils its contractual compulsion to