Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Avoiding UDP client-side packet loss Pin
Stefan Pedersen4-Feb-03 12:37
Stefan Pedersen4-Feb-03 12:37 
GeneralRe: Avoiding UDP client-side packet loss Pin
Zoltan Csizmadia4-Feb-03 11:16
Zoltan Csizmadia4-Feb-03 11:16 
GeneralRe: Avoiding UDP client-side packet loss Pin
Zoltan Csizmadia4-Feb-03 11:18
Zoltan Csizmadia4-Feb-03 11:18 
GeneralRe: Avoiding UDP client-side packet loss Pin
Gisle Vanem5-Feb-03 0:39
Gisle Vanem5-Feb-03 0:39 
GeneralCan't use \n in my Edit box!! Pin
Rickard Andersson204-Feb-03 10:43
Rickard Andersson204-Feb-03 10:43 
GeneralRe: Can't use \n in my Edit box!! Pin
Gary Kirkham4-Feb-03 10:45
Gary Kirkham4-Feb-03 10:45 
GeneralRe: Can't use \n in my Edit box!! Pin
Alvaro Mendez4-Feb-03 10:46
Alvaro Mendez4-Feb-03 10:46 
QuestionCan somebody help me please? Pin
MemLeak4-Feb-03 10:12
MemLeak4-Feb-03 10:12 
It's not the first time that I post this message. Look like nobody can help me...

I want to draw a transparent bitmap into a Dialogbar.

Here what I tried:

this is in my dialog bar class...

BOOL myDlgBar::Create(CWnd* pParentWnd)
{
if(!Create(pParentWnd, IDD_DLG_POSROOT, CBRS_RIGHT, IDD_DLG_POSROOT))
{
return 0; // fail to create
}

else
{

COLORMAP clr; //used to chnge my black color in my bitmap to white color

clr.from = RGB(0,0,0);//black
clr.to = RGB(255,255,255);//white

m_SLogo.Create(_T("my static"),WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE,
CRect(9,10,209,78), this, IDC_LOGOPOSROOT);

m_SLogo.SetBitmap(::CreateMappedBitmap(AfxGetInstanceHandle(), IDB_LOGO, 0, &clr, 1) );

return 1;
}
}


with CStatic m_SLogo;

IDC_LOGOPOSROOT is my picture class object in the resource editor with "frame" option
IDB_LOGO is my id of my bitmap in the ressource editor
IDD_DLG_POSROOT is the id of my dialog in the ressource editor


The result of this is that I can see my bitmap in my dialog bar but the black didn't change to white...


thanks


Everything's beautiful if you look at it long enough...
AnswerRe: Can somebody help me please? Pin
includeh106-Feb-03 0:04
includeh106-Feb-03 0:04 
GeneralMathematical Overflow Pin
Dov Sherman4-Feb-03 10:10
Dov Sherman4-Feb-03 10:10 
GeneralRe: Mathematical Overflow Pin
Tim Smith4-Feb-03 10:25
Tim Smith4-Feb-03 10:25 
GeneralRe: Mathematical Overflow Pin
Alvaro Mendez4-Feb-03 10:39
Alvaro Mendez4-Feb-03 10:39 
GeneralRe: Mathematical Overflow Pin
eddie.breeveld28-Sep-04 1:51
eddie.breeveld28-Sep-04 1:51 
GeneralRe: Mathematical Overflow Pin
Joaquín M López Muñoz4-Feb-03 10:49
Joaquín M López Muñoz4-Feb-03 10:49 
GeneralRe: Mathematical Overflow Pin
nde_plume4-Feb-03 11:26
nde_plume4-Feb-03 11:26 
Generalusing HWND vs CWnd* with MFC. Pin
Maximilien4-Feb-03 9:58
Maximilien4-Feb-03 9:58 
GeneralRe: using HWND vs CWnd* with MFC. Pin
Joaquín M López Muñoz4-Feb-03 9:59
Joaquín M López Muñoz4-Feb-03 9:59 
GeneralRe: using HWND vs CWnd* with MFC. Pin
David Salter4-Feb-03 10:20
David Salter4-Feb-03 10:20 
GeneralRe: using HWND vs CWnd* with MFC. Pin
Joaquín M López Muñoz4-Feb-03 10:45
Joaquín M López Muñoz4-Feb-03 10:45 
GeneralRe: using HWND vs CWnd* with MFC. Pin
Zoltan Csizmadia4-Feb-03 11:28
Zoltan Csizmadia4-Feb-03 11:28 
GeneralRe: using HWND vs CWnd* with MFC. Pin
Joaquín M López Muñoz4-Feb-03 11:34
Joaquín M López Muñoz4-Feb-03 11:34 
QuestionGet app Path ? Pin
Larsson4-Feb-03 9:55
Larsson4-Feb-03 9:55 
AnswerRe: Get app Path ? Pin
Joaquín M López Muñoz4-Feb-03 9:56
Joaquín M López Muñoz4-Feb-03 9:56 
GeneralRe: Get app Path ? Pin
Larsson4-Feb-03 11:24
Larsson4-Feb-03 11:24 
AnswerRe: Get app Path ? Pin
Navin4-Feb-03 11:00
Navin4-Feb-03 11:00 

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.