Click here to Skip to main content
15,908,673 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionstd::find_if and std::equal_to Pin
Member 46952313-Jun-08 22:50
Member 46952313-Jun-08 22:50 
AnswerRe: std::find_if and std::equal_to Pin
Stephen Hewitt4-Jun-08 21:55
Stephen Hewitt4-Jun-08 21:55 
AnswerRe: std::find_if and std::equal_to Pin
Stuart Dootson5-Jun-08 15:01
professionalStuart Dootson5-Jun-08 15:01 
AnswerRe: std::find_if and std::equal_to Pin
Michael Dunn12-Jun-08 14:54
sitebuilderMichael Dunn12-Jun-08 14:54 
GeneralRe: std::find_if and std::equal_to Pin
Stephen Hewitt12-Jun-08 18:16
Stephen Hewitt12-Jun-08 18:16 
GeneralRe: std::find_if and std::equal_to Pin
Member 469523115-Jun-08 23:19
Member 469523115-Jun-08 23:19 
QuestionHow to make the ActiveX control full transparent int word Pin
liuguang1-Jun-08 16:55
liuguang1-Jun-08 16:55 
AnswerRe: How to make the ActiveX control full transparent int word Pin
Ju@ncho4-Jul-08 4:28
Ju@ncho4-Jul-08 4:28 
Ni Hao,

To draw your control as transparent must Override the OnDraw() of the ActiveX.

If you Do nothing there the control will never be written ad you should see what lies bellow it.

Also you could use the function TransparentBlt() to draw any overlay you want.

A third option could be capturing the screen below the control an drawing it (for avoiding the .


HRESULT CCAxQuantMaster::OnDraw(ATL_DRAWINFO& di)
{

RECT& rc = *(RECT*)di.prcBounds;

// Set Clip region to the rectangle specified by di.prcBounds
HRGN hRgnOld = NULL;
if (GetClipRgn(di.hdcDraw, hRgnOld) != 1)
hRgnOld = NULL;
bool bSelectOldRgn = false;

HRGN hRgnNew = CreateRectRgn(rc.left, rc.top, rc.right, rc.bottom);

if (hRgnNew != NULL)
{
bSelectOldRgn = (SelectClipRgn(di.hdcDraw, hRgnNew) != ERROR);
}
//Select Transparent Brush
SelectObject(di.hdcDraw, GetStockObject(NULL_BRUSH));

Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);
}

JO
Smile | :)

GeneralRe: How to make the ActiveX control full transparent int word Pin
liuguang6-Jul-08 15:18
liuguang6-Jul-08 15:18 
QuestionMFC-STL Pin
Yokeldj29-May-08 0:41
Yokeldj29-May-08 0:41 
QuestionCompiling a VC++ 6.0 project with VC++ 7.1 problem: Error C2664 with CComPtr. Please help. Pin
Arris7426-May-08 6:33
Arris7426-May-08 6:33 
QuestionMaking use of an STL reducer application Pin
malte de moll24-May-08 6:24
malte de moll24-May-08 6:24 
AnswerRe: Making use of an STL reducer application Pin
Stuart Dootson29-May-08 21:37
professionalStuart Dootson29-May-08 21:37 
QuestionUsing events of JScript in ATL COM DLL? Pin
ritz123422-May-08 0:30
ritz123422-May-08 0:30 
QuestionCheckbox and Listbox question Pin
monsieur_jj21-May-08 22:32
monsieur_jj21-May-08 22:32 
AnswerRe: Checkbox and Listbox question Pin
monsieur_jj22-May-08 16:24
monsieur_jj22-May-08 16:24 
GeneralRe: Checkbox and Listbox question Pin
Stuart Dootson22-May-08 22:22
professionalStuart Dootson22-May-08 22:22 
GeneralRe: Checkbox and Listbox question Pin
monsieur_jj25-May-08 16:39
monsieur_jj25-May-08 16:39 
GeneralRe: Checkbox and Listbox question Pin
Stuart Dootson26-May-08 12:30
professionalStuart Dootson26-May-08 12:30 
QuestionCButton question Pin
monsieur_jj20-May-08 19:43
monsieur_jj20-May-08 19:43 
AnswerRe: CButton question Pin
Stuart Dootson20-May-08 20:27
professionalStuart Dootson20-May-08 20:27 
GeneralRe: CButton question Pin
monsieur_jj21-May-08 15:43
monsieur_jj21-May-08 15:43 
GeneralRe: CButton question Pin
Stuart Dootson21-May-08 20:53
professionalStuart Dootson21-May-08 20:53 
GeneralRe: CButton question Pin
monsieur_jj21-May-08 22:25
monsieur_jj21-May-08 22:25 
QuestionAbout DLL files and Comm control Pin
savitri19-May-08 23:10
savitri19-May-08 23:10 

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.