Normandy Merge ....

git-svn-id: svn://10.0.0.236/trunk@4231 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
spider
1998-06-22 21:19:46 +00:00
parent a43d7627c5
commit 957093e8c5
359 changed files with 53994 additions and 13241 deletions

View File

@@ -133,9 +133,22 @@ void CNSAddressTypeControl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
void DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, short xStart, short yStart, COLORREF cTransparentColor )
{
#ifdef FEATURE_DRAWTRANSBITMAP
#include "nsadrtyp.i00"
#endif
HDC hSrcDC = CreateCompatibleDC(hdc);
SelectObject(hSrcDC, hBitmap);
BITMAP bm;
GetObject(hBitmap, sizeof(BITMAP), (LPSTR)&bm);
POINT ptSize;
ptSize.x = bm.bmWidth;
ptSize.y = bm.bmHeight;
DPtoLP(hSrcDC, &ptSize, 1);
HPALETTE hPalette = (HPALETTE)GetCurrentObject(hdc, OBJ_PAL);
FEU_TransBlt(hdc, xStart, yStart, ptSize.x, ptSize.y, hSrcDC, 0, 0, hPalette, cTransparentColor);
DeleteDC(hSrcDC);
}
int CNSAddressTypeControl::OnCreate(LPCREATESTRUCT lpCreateStruct)