Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

goldenrose9

@goldenrose9
About
Posts
65
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • can anyone convert this MFC code to WIN32 code please help
    G goldenrose9

    i understand what you want to tell. Its a request, don't mind it, please, i don't want to get lots of anwser. how much i had asked and how complex is it. If u see this question here, i had searched the code and tried to convert it. But i failed so asked here. if you feel that i ask most then i will never ask again. Why i commented on google. because everyone out on net know google very much. this answer is simply useless.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC c++ help

  • can anyone convert this MFC code to WIN32 code please help
    G goldenrose9

    nice joke.... Google. anyways thanx 4 d reply...

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC c++ help

  • can anyone convert this MFC code to WIN32 code please help
    G goldenrose9

    never tried sir, can you provide a small sample.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC c++ help

  • can anyone convert this MFC code to WIN32 code please help
    G goldenrose9

    sir, i had try to convert the above code. but this code doesn't work at all. please check it.

    COLORREF m_crBlack;
    COLORREF m_crWhite;

    int Height();
    int Width();
    void InitBMP();
    void DrawTransparent(HDC* pDC, int x, int y, COLORREF crColour);

    void InitBMP()
    {
    m_crBlack = 0;
    m_crWhite = RGB(255,255,255);
    }
    int Width()
    {
    BITMAP bm={0};
    //SIZE lp ={0};
    //GetBitmapDimensionEx(bm,&lp);
    //return lp.cx;
    GetObject(&bm,sizeof(BITMAP),&bm);
    return bm.bmWidth;
    }
    int Height()
    {
    BITMAP bm={0};
    //SIZE lp={0};
    //GetBitmapDimensionEx(bm,&lp);
    //return lp.cy;
    GetObject(&bm, sizeof(BITMAP),&bm);
    return bm.bmHeight;
    }
    void DrawTransparent(HDC pDC, int x, int y, COLORREF crColour)
    {
    COLORREF croldBack = SetBkColor(pDC,m_crWhite);
    COLORREF croldText = SetTextColor(pDC,m_crBlack);

    //create two memory dcs for the image and the mask;
    HDC dcImage = CreateCompatibleDC(pDC);
    HDC dcTrans = CreateCompatibleDC(pDC);
    
    
    //Select the image into the appropriate dc
    HBITMAP pOldBitmapImage = NULL;
    SelectObject(dcImage,pOldBitmapImage);
    //SelectObject(dcImage,this);
    
    //create the mask bitmap
    HBITMAP bitmapTrans = NULL;
    int nWidth = Width();
    int nHeight =Height();
    
    bitmapTrans = CreateBitmap(nWidth,nHeight,1,1,NULL);
    
    //select the mast bitmap into the appropriate dc
    HBITMAP pOldBitmapTrans= NULL;
    SelectObject(dcTrans,bitmapTrans);
    
    //Build mask based on transparent color	
    SetBkColor(dcImage,crColour);
    BitBlt(dcTrans,0,0,nWidth,nHeight,dcImage,0,0,SRCCOPY);
    
    //Do the work true mask method
    BitBlt(pDC,x,y,nWidth,nHeight,dcImage,0,0,SRCINVERT);
    BitBlt(pDC,x,y,nWidth,nHeight,dcTrans,0,0,SRCAND);
    BitBlt(pDC,x,y,nWidth,nHeight,dcImage,0,0,SRCINVERT);
    
    //Restore Settings
    SelectObject(dcImage,pOldBitmapImage);
    SelectObject(dcTrans,pOldBitmapTrans);
    SetBkColor(pDC,croldBack);
    SetTextColor(pDC,croldText);
    

    }

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC c++ help

  • can anyone convert this MFC code to WIN32 code please help
    G goldenrose9

    .

    Some Day I Will Prove MySelf :: GOLD

    modified on Monday, March 21, 2011 2:13 PM

    C / C++ / MFC c++ help

  • how to remove the extra border of a button after enabling xp visual style
    G goldenrose9

    thanx, how to make a portion of BMP image transparent in WIN32 way.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC wpf help tutorial

  • how to remove the extra border of a button after enabling xp visual style
    G goldenrose9

    a small brief of my program is as follows. my program is in win32, i had used BMP image on the Dialog, the BMP image cover the entire dialog. BMP image is in blue color. And added a button on the dialog. without using manifest the button is ok, but after enabling xp visual style a strange border is created around the button. As the Dialog has BMP image loaded, it creates a strange look, if some how the extra border of the button can be removed, then it will be ok. I am unable to remove the extra border. i don't want to remove the button border, i want to remove only the extra border that is created around the button after enabling xp visual styles. please help.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC wpf help tutorial

  • Remove button border
    G goldenrose9

    this is not the default signal, because i have four buttons on the dialog, and each button have the same problem. When the button are in classic style every thing is ok. But after enabling XP Visual Styles this problem occurs.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC com tutorial

  • Remove button border
    G goldenrose9

    sir what do i do so u can see the bitmap? sir a small brief of my program is as follows. my program is in win32, i had used BMP image on the Dialog, the BMP image cover the entire dialog. BMP image is in blue color. And added a button on the dialog. without using manifest the button is ok, but after enabling xp visual style a strange border is created around the button. As the Dialog has BMP image loaded, it creates a strange look, if some how the extra border of the button can be removed, then it will be ok. I am unable to remove the extra border. i don't want to remove the button border, i want to remove only the extra border that is created around the button after enabling xp visual styles. please help.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC com tutorial

  • Remove button border
    G goldenrose9

    i have checked it's not working.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC com tutorial

  • Remove button border
    G goldenrose9

    when bmp image is used in the dialog background then the button creates a white border. how to remove this border. sample of how it looks is below http://i55.tinypic.com/25qdj79.png[^]

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC com tutorial

  • Help Microsoft Scripting Runtime
    G goldenrose9

    How to use Microsoft Scripting Runtime in WIN32 C++ want to use this function GetDrive("C:\").IsReady

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC c++ help tutorial

  • WM_DEVICECHANGE Problem [SOLVED]
    G goldenrose9

    thanx, it worked:thumbsup:

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC help performance

  • WM_DEVICECHANGE Problem [SOLVED]
    G goldenrose9

    Ozer Karaagac wrote:

    dbcv_unitmask in case DBT_DEVICEREMOVECOMPLETE

    is 245760. and this is occurred only once.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC help performance

  • WM_DEVICECHANGE Problem [SOLVED]
    G goldenrose9

    Ozer Karaagac wrote:

    Does your device generate something other than DBT_DEVTYP_VOLUME as dbcv_devicetype member of the structure

    dbcv_devicetype = 2 When i insert the memory card reader DBT_DEVICEARRIVAL detect four drives (O,P,Q,R) but when memory card is removed DBT_DEVICEREMOVECOMPLTE detect only one drive removed from system (O drive), why other three drives is not notified. (P,Q,R Drives)

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC help performance

  • WM_DEVICECHANGE Problem [SOLVED]
    G goldenrose9

    this code is not notifying neither DEVICE_ARRIVAL nor DEVICE REMOVAL.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC help performance

  • WM_DEVICECHANGE Problem [SOLVED]
    G goldenrose9

    LRESULT CALLBACK devDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
    {

    switch(msg)
    {
    	case WM\_DEVICECHANGE:
    		PDEV\_BROADCAST\_VOLUME pVol = (PDEV\_BROADCAST\_VOLUME)lParam;
    		switch(wParam)
    		{
    		case DBT\_DEVICEARRIVAL:
    			MessageBox(NULL,\_T("FOUND"), \_T(""),MB\_OK);
    			break;
    		case DBT\_DEVICEREMOVECOMPLETE:
    			MessageBox(NULL,\_T("REMOVED"), \_T(""),MB\_OK);
    			break;
    		}
    	break;
    }
    return FALSE;
    

    }

    While Inserting memory card reader DBT_DEVICEARRIVAL notifies about Four Removable Drives (O,P,Q,R Drives), But while removing memory card reader DBT_DEVICEREMOVECOMPLETE notifies about only ONE Removable Drive (O Drive). Why DBT_DEVICEREMOVECOMPLETE does not notifies about other Three removable drives ( P,Q,R Drives). Help :confused:

    Some Day I Will Prove MySelf :: GOLD

    modified on Monday, March 7, 2011 5:43 AM

    C / C++ / MFC help performance

  • case statement in DLGPROC [SOLVED]
    G goldenrose9

    LRESULT CALLBACK DlgProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
    {
    case WM_INITDIALOG:
    return FALSE;
    case WM_COMMAND:
    return FALSE;
    case WM_CLOSE:
    return FALSE;
    }

    LRESULT CALLBACK DlgProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
    {
    case WM_INITDIALOG:
    return TRUE;
    case WM_COMMAND:
    return TRUE;
    case WM_CLOSE:
    return TRUE;
    }

    LRESULT CALLBACK DlgProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
    {
    case WM_INITDIALOG:
    break;
    case WM_COMMAND:
    break;
    case WM_CLOSE:
    break;
    }

    LRESULT CALLBACK DlgProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)
    {
    case WM_INITDIALOG:
    return 0;
    case WM_COMMAND:
    return 0;
    case WM_CLOSE:
    return 0;
    }

    out of these four examples, which one is correct and more accurate, and why.

    Some Day I Will Prove MySelf :: GOLD

    modified on Sunday, March 6, 2011 12:19 PM

    C / C++ / MFC

  • WM_COMMAND [SOLVED]
    G goldenrose9

    case WM_COMMAND:
    {
    if(LOWORD(wParam)==frmMainOK && HIWORD(wParam) == BN_CLICKED)
    {
    MessageBox(NULL,"OK Pressed","Demo",MB_OK);
    }
    return TRUE;
    }

    case WM_COMMAND:
    {
    switch(wParam)
    {
    case frmMainOK:
    MessageBox(NULL,"OK Pressed","Demo",MB_OK);
    break;
    }
    break;
    }

    Which is the correct and most appropriate way between the two examples given above, and why?

    Some Day I Will Prove MySelf :: GOLD

    modified on Saturday, March 5, 2011 10:37 PM

    C / C++ / MFC question

  • structure to file [REMAIN UNSOLVED] [CLOSED]
    G goldenrose9

    please give a sample so that i can understand my mistake.

    Some Day I Will Prove MySelf :: GOLD

    C / C++ / MFC tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups