--%>

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 : HW Otobai Motor Company is currently

    Otobai Motor Company is currently paying a dividend of $1.40 per year. The dividends are expected to grow at a rate of 18% for the next three years and then a constant rate of 5% thereafter forever. What is the vlaue of its current stock price? Assuming that the discount rate is 10%.{Hint: pages 84-

  • Q : Coefficient of variation is a better

    Elaborate the statement: Coefficient of variation is a better risk calculator to use than the standard deviation when estimating the risk of capital budgeting projects.

  • Q : What is Arbitrage Pricing Theory What

    What is Arbitrage Pricing Theory?

  • Q : What is Rho for the foreign exchange

    What is Rho for the foreign exchange option value?

  • Q : Underwriting a new security issue for a

    What will an investment banker do while underwriting a new security issue for a corporation?

  • Q : Describe multinational corporations and

    Describe multinational corporations (MNCs) and economic roles do they play?A multinational corporation (MNC) can be described as a business firm incorporated in one country which has production & sales operations in several other countries.

  • Q : Define market for foreign exchange

    Define market for foreign exchange.Broadly described, the foreign exchange (FX) market encompasses the conversion of purchasing power from one currency to another, bank deposits of foreign currency, the extension of credit denominated in a forei

  • Q : Advantage of less equilibrium exchange

    Assume that the pound is pegged to gold at 6 pounds per ounce, while the franc is pegged to gold at 12 francs per ounce. Of course it implies that the equilibrium exchange rate ought be two francs per pound. If the current market exchange rate is 2.2 francs pe

  • Q : When is an exploitable opportunity seen

    When is an exploitable opportunity usually seen for excess returns?

  • Q : Describe difference between

    Describe difference between international financial management and domestic financial management?