|
Mmmm. As long as MS continues to support ATL (any reason why they would stop?) then there is no reason for WTL to stop working. And, looking at how rich ATL7 is, MS is still very much behind it...
Faith. Believing in something you *know* isn't true.
|
|
|
|
|
Why do you need MS support for it? You get all the source code so any bugs can be fixed yourself. WTL has a large user community who can help better than MS ever would. WTL is great for adding UI to ATL components.
Michael
"I've died for a living in the movies and tv.
But the hardest thing I'll ever do is watch my leading ladies,
Kiss some other guy while I'm bandaging my knee."
-- The Unknown Stuntman
|
|
|
|
|
Thanks but...
The main problem comes, if later I have to port the project to Visual Studio 7 ....
Braulio
|
|
|
|
|
Braulio Díez wrote:
The main problem comes, if later I have to port the project to Visual Studio 7 ....
WTL works just as well in Visual Studio 7, I use it all the time!
--
Simon Steele
Programmers Notepad - http://www.pnotepad.org/
|
|
|
|
|
There are two versions of WTL, 3.1 (which is easy to use with VC6, and has an AppWizard for it), and WTL 7, which is usable with both. I'd go for WTL 7, since there are appwizards for VC6 and VC.NET
Steve S
[This signature space available for rent]
|
|
|
|
|
I'm Making simple http server, and I don'ät know how to
transfer pictures from it. So does anybody know, how
to send those pictures to browser. Any example code or
article to read
Regards
Janne
|
|
|
|
|
Just add the right mimetype in your HTTP headers :
Content-Type: image/jpeg
How low can you go ? (MS rant)
|
|
|
|
|
We've created an application that uses Winsock API. Now i want to create a separate application that intercepts the Connect() call made by the first application, do something with this call and then pass the control to the original Connect() of the Winsock API.
Is this possible ? Is this the topic of API hooking ?? Is there any other altranative to achieve my goal ?? Is there any article or sample source concerning this topic of Winsock API interception, you aware of ???
|
|
|
|
|
It did that already a few times, it is possible, and: It is very easy to accomplish
I use the Microsoft Detours library for that purpose, although it has some limitiations in it license. Take a look at
http://research.microsoft.com/sn/detours/
The libarary has a few examples, and I learnt to use that library withinh a few minutes
regards
Greg
modified 12-Sep-18 21:01pm.
|
|
|
|
|
The link you provided is not correct. Can you provide the correct link???
|
|
|
|
|
I have a dialog in which when I call create i give it the this ptr. Then when I call GetParent() and try try to send it a message it goes to the MainFrm. Why is that? I thought the immediate parent would be the View?
Also, what would the parent of the view be?
Thanks. I am a little confused.
|
|
|
|
|
mainframe is default parent, u need to pass view as parent if u want it
includeh10
|
|
|
|
|
I write a program that contain a dialog.It's so easy to have a status bar in App based on SDI/MDI, but I don't know how to place a statusbar in a dialog form.
Could anyone tell me how ?
Thanks in advance!
NNH
|
|
|
|
|
|
i saved lparam and wparam values when a key
(say U)pressed on a perticuler edit box.
i want to use these values of lparam and wparam again on different edit box.in order to see that key
(say U) .
is that code is correct or not for that purpose?
is there any change in logic if yes then plz tell?
LPEVENTMSG lpEvent= (LPEVENTMSG)lParam;
PostMessage(different_hWnd,
lpEvent->message,wParam,lParam);
second edit box reside on different process.
r00d0034@yahoo.com
|
|
|
|
|
Hello,
I have a program works like windows explorer that contains a treeview and listview control. When I select an item a blue border will be marked to the selected item. If I select an item in the menu the blue border goes away because the control is losing focus. I noticed that Windows Explorer can keep the blue border in the folder pane and the file pane even a menu item is being selected so you know what item and control you're going to send command to like rename and delete. Do you know how to do it?
Thanks,
Hiu Sing Ngai
|
|
|
|
|
Try the Show Selection Always style...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Even with the LVS_SHOWSELALWAYS style, the selection mark goes gray in color when you select a menu item.
|
|
|
|
|
Custom or ownerdraw my friend...
Have fun
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
What the heck happens to scrollbars when you override this friggen function...?
They're obviosuly painted over or something cuz they disappear, but when I click anywhere near they were before...they magically start re-appearing only to get lost again when window is minimized or goes off screen...???
What the heck...? Do I have to draw my own scrollbars when I override OnNcPaint()
I also have overriden the following:
void CCustomList::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp)
{
lpncsp->rgrc->left += 100;
CListBox::OnNcCalcSize(bCalcValidRects, lpncsp);
}
What is going on...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
The scrollbars are in the non-client area, so OnNcPaint() is where they normally get drawn. You can either draw them yourselves, or call the default code.
Hockey wrote:
I also have overriden the following:
Yeah, that's prolly ok; you're gonna be drawing something in the left margin, yes?
Shog9
------
So they took me down to the gallows
And this boy, he said to me:
"Why do you smile, when the rope's around your neck?"
I said, "I tell you boy, when i get back..."
|
|
|
|
|
Shog9 wrote:
The scrollbars are in the non-client area, so OnNcPaint() is where they normally get drawn. You can either draw them yourselves, or call the default code.
I'd much rather just do my custom drawing and let windows handle the rest...
How are you suppose to do this thou...?
AppWizard leaves a comment saying DO NOT call CListBox::OnNcPaint()
I want to draw only on the left NON client side...ignoring anything client or right side non-client...
CRect rect;
GetClientRect(rect);
CDC* pDC = GetDC();
rect.left -= 100;
rect.right = 0;
pDC->FillSolidRect(rect, RGB(128,0,0));
How would I allow default drawing code to update those scrollbars for me...?
Thanx man!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hockey wrote:
AppWizard leaves a comment saying DO NOT call CListBox::OnNcPaint()
Yeah... i don't know why though. Give it a try, if it breaks then you'll know.
Shog9
------
So they took me down to the gallows
And this boy, he said to me:
"Why do you smile, when the rope's around your neck?"
I said, "I tell you boy, when i get back..."
|
|
|
|
|
I'll try it...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Well it didn't choke...
Thanx bro...I wouldn't have even tried it cuz that stupid comment...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|