Click here to Skip to main content
15,905,508 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralATL Controls Pin
muslcesonvacation21-Feb-05 16:48
muslcesonvacation21-Feb-05 16:48 
GeneralEvent is not catched in script Pin
grinder20-Feb-05 22:55
grinder20-Feb-05 22:55 
GeneralRe: Event is not catched in script Pin
Gevorg22-Feb-05 10:14
Gevorg22-Feb-05 10:14 
GeneralRe: Event is not catched in script Pin
grinder23-Feb-05 1:03
grinder23-Feb-05 1:03 
GeneralPlug-in in IE Pin
Pauwl20-Feb-05 21:46
Pauwl20-Feb-05 21:46 
GeneralATL ActiveX Control Pin
muslcesonvacation20-Feb-05 7:34
muslcesonvacation20-Feb-05 7:34 
GeneralRe: ATL ActiveX Control Pin
Michael Dunn20-Feb-05 11:03
sitebuilderMichael Dunn20-Feb-05 11:03 
GeneralRe: ATL ActiveX Control Pin
muslcesonvacation20-Feb-05 12:51
muslcesonvacation20-Feb-05 12:51 
Hi Michael,

Well my code now reads as follows, but i still ain't got no bitmap to display on my control.

HRESULT CIBPPDatabase::OnDraw(ATL_DRAWINFO& di)
{
RECT& rc = *(RECT*)di.prcBounds;
HDC hdc = di.hdcDraw;
HBITMAP hNoteBmp;
HDC hNoteDC;
hNoteDC = CreateCompatibleDC(hdc);
hNoteBmp = (HBITMAP)LoadImage(NULL, "C:/NEW.bmp",IMAGE_BITMAP,
0,0, LR_LOADFROMFILE );
if (hNoteBmp == NULL)
MessageBox("NULL");
SelectObject(hNoteDC, hNoteBmp);
//SetBkMode(hNoteDC, TRANSPARENT);
BitBlt(hdc, rc.left, rc.top, 32,
32, hNoteDC, 0, 0, SRCCOPY);
DeleteDC(hNoteDC);
DeleteObject(hNoteBmp);
return S_OK;
}

Wonder what is happening.

Thanks
Gary
GeneralRe: ATL ActiveX Control Pin
Igor Vigdorchik20-Feb-05 15:14
Igor Vigdorchik20-Feb-05 15:14 
GeneralRe: ATL ActiveX Control Pin
Anonymous21-Feb-05 3:45
Anonymous21-Feb-05 3:45 
GeneralRe: ATL ActiveX Control Pin
muslcesonvacation21-Feb-05 14:01
muslcesonvacation21-Feb-05 14:01 
GeneralWinlogon/Notify packet problem. Pin
dabayi18-Feb-05 2:53
dabayi18-Feb-05 2:53 
GeneralRe: Winlogon/Notify packet problem. Pin
ThatsAlok18-Feb-05 20:47
ThatsAlok18-Feb-05 20:47 
GeneralRe: Winlogon/Notify packet problem. Pin
Jörgen Sigvardsson19-Feb-05 6:31
Jörgen Sigvardsson19-Feb-05 6:31 
GeneralATL App consuming .NET Pin
Chiew Heng Wah17-Feb-05 19:25
Chiew Heng Wah17-Feb-05 19:25 
GeneralRe: ATL App consuming .NET Pin
Gevorg22-Feb-05 10:15
Gevorg22-Feb-05 10:15 
GeneralPWSTR length Pin
dabayi17-Feb-05 1:45
dabayi17-Feb-05 1:45 
GeneralRe: PWSTR length Pin
ThatsAlok17-Feb-05 3:03
ThatsAlok17-Feb-05 3:03 
GeneralRe: PWSTR length Pin
dabayi17-Feb-05 3:17
dabayi17-Feb-05 3:17 
GeneralRe: PWSTR length Pin
ThatsAlok17-Feb-05 4:50
ThatsAlok17-Feb-05 4:50 
GeneralRe: PWSTR length Pin
dabayi17-Feb-05 5:22
dabayi17-Feb-05 5:22 
Generalcalling member functions from a map Pin
Malcolm Smart16-Feb-05 21:43
Malcolm Smart16-Feb-05 21:43 
GeneralRe: calling member functions from a map Pin
Stuart Dootson17-Feb-05 10:33
professionalStuart Dootson17-Feb-05 10:33 
GeneralRe: calling member functions from a map Pin
Malcolm Smart17-Feb-05 21:46
Malcolm Smart17-Feb-05 21:46 
GeneralRe: calling member functions from a map Pin
Stuart Dootson18-Feb-05 4:39
professionalStuart Dootson18-Feb-05 4:39 

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.