Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dynamic Tree Pin
Emilio Garavaglia6-Jul-11 2:19
Emilio Garavaglia6-Jul-11 2:19 
AnswerRe: Dynamic Tree Pin
Niklas L6-Jul-11 4:47
Niklas L6-Jul-11 4:47 
QuestionHow to retrieve Icon/Bitmap/HBITMAP information from CMenu? [modified] Pin
nate316-Jul-11 0:30
nate316-Jul-11 0:30 
AnswerRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
Richard MacCutchan6-Jul-11 0:37
mveRichard MacCutchan6-Jul-11 0:37 
GeneralRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
nate316-Jul-11 15:52
nate316-Jul-11 15:52 
QuestionRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
David Crow6-Jul-11 3:52
David Crow6-Jul-11 3:52 
AnswerRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
nate316-Jul-11 15:53
nate316-Jul-11 15:53 
GeneralRe: How to retrieve Icon/Bitmap/HBITMAP information from CMenu? Pin
David Crow6-Jul-11 16:55
David Crow6-Jul-11 16:55 
Start with something like:

MENUITEMINFO mii = {0};
mii.cbSize = sizeof(MENUITEMINFO);
mii.fMask = MIIM_FTYPE; 
mii.fType = MFT_OWNERDRAW;
if (pMenu->GetMenuItemInfo(i, &mii, TRUE /*1st param = item position*/))
{
    Gdiplus::Bitmap *pMI = (Gdiplus::Bitmap *) mii.dwItemData;
    if (pMI != NULL)
    {
        HBITMAP hbm = NULL;
        Gdiplus::Status status = pMI->GetHBITMAP(Gdiplus::Color(0, 255, 255, 255), &hbm);
        if (status == Status::Ok)
            ;
    }
    else
        ASSERT(FALSE);
}
else
    dwError = GetLastError();

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather


QuestionAt CADORecordset.Close() Application get crashed. Pin
Amrit Agr5-Jul-11 23:16
Amrit Agr5-Jul-11 23:16 
AnswerRe: At CADORecordset.Close() Application get crashed. Pin
Niklas L6-Jul-11 0:04
Niklas L6-Jul-11 0:04 
GeneralRe: At CADORecordset.Close() Application get crashed. Pin
Amrit Agr6-Jul-11 0:19
Amrit Agr6-Jul-11 0:19 
GeneralRe: At CADORecordset.Close() Application get crashed. Pin
Niklas L6-Jul-11 0:42
Niklas L6-Jul-11 0:42 
Questionwin32 dll is not working for c# application. Pin
Le@rner5-Jul-11 21:17
Le@rner5-Jul-11 21:17 
AnswerRe: win32 dll is not working for c# application. Pin
Cedric Moonen5-Jul-11 21:37
Cedric Moonen5-Jul-11 21:37 
QuestionRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 21:56
Malli_S5-Jul-11 21:56 
AnswerRe: win32 dll is not working for c# application. Pin
Le@rner5-Jul-11 22:00
Le@rner5-Jul-11 22:00 
AnswerRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 22:09
Malli_S5-Jul-11 22:09 
GeneralRe: win32 dll is not working for c# application. Pin
Le@rner5-Jul-11 22:34
Le@rner5-Jul-11 22:34 
GeneralRe: win32 dll is not working for c# application. Pin
Malli_S5-Jul-11 23:46
Malli_S5-Jul-11 23:46 
QuestionSometimes variable is not created using add variable wizard in VC++ 10 Pin
VCProgrammer5-Jul-11 20:26
VCProgrammer5-Jul-11 20:26 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Rajesh R Subramanian5-Jul-11 21:08
professionalRajesh R Subramanian5-Jul-11 21:08 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Niklas L6-Jul-11 0:10
Niklas L6-Jul-11 0:10 
AnswerRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Albert Holguin6-Jul-11 3:55
professionalAlbert Holguin6-Jul-11 3:55 
GeneralRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
VCProgrammer6-Jul-11 21:05
VCProgrammer6-Jul-11 21:05 
GeneralRe: Sometimes variable is not created using add variable wizard in VC++ 10 Pin
Albert Holguin7-Jul-11 3:54
professionalAlbert Holguin7-Jul-11 3:54 

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.