Search the web
Sign In
New User? Sign Up
wtl · WTL support list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 9832 - 9861 of 16191   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
9832
Hi All I've come across a piece of code. This is defined in AtlBase.h line number 3977 BSTR Detach() { BSTR s = m_str; m_str = NULL; return s; } Now in this...
tarun.kanal@...
tarunkanal
Offline Send Email
Sep 2, 2004
7:08 am
9833
... Yes, this is correct. Consider the alternative: BSTR Detach() { BSTR garbage = m_str; ... m_str = NULL; return garbage; } This function is supposed to...
pablo_alch
Offline Send Email
Sep 2, 2004
7:37 am
9834
Hi Tarun, ... That's what Detach() does. It transfers ownership of the string to the caller. ... What do you do with *bstrBuffer afterwards? Kim...
Kim Gräsman
kimgrasman
Offline Send Email
Sep 2, 2004
7:40 am
9835
... Yes, this is correct. The alternative could be: BSTR Detach() { BSTR garbage = m_str; ... m_str = NULL; return garbage; } See what I mean? This function...
Pablo Aliskevicius
pablo_alch
Offline Send Email
Sep 2, 2004
7:41 am
9836
There is nothing wrong with the code in Detach(), it is simply handing over ownership of the BSTR to whatever is calling it. The calling method now has the...
Edwards, John
johnesage
Offline Send Email
Sep 2, 2004
7:51 am
9837
Hi Its an out parameter for a function. I'm loading string from resource and passing it back. Regards Tarun ... From: Kim Gräsman [mailto:kim@...] Sent:...
tarun.kanal@...
tarunkanal
Offline Send Email
Sep 2, 2004
7:51 am
9838
Thats what Detach() should do. Releasing the buffer is made by Empty(). Why don't you assign immediately? As in *bstrBuffer = T2W(szData); /Johann ... From:...
Johann Gerell
unsygn
Offline Send Email
Sep 2, 2004
8:06 am
9839
... Then how about: CComBSTR tmpRes ; tmpRes.LoadString( IDS_STRING_RES ) ; tmpRes.CopyTo( &OutStr ) ; Regards, Ryan ... Ryan Ginstrom ryang@......
Ryan Ginstrom
ryanginstrom
Offline Send Email
Sep 2, 2004
8:32 am
9840
... Incidentally, the following is the most efficient way *I* know how to do it (lifted substantially from MSDN)... UINT block = (uid >> 4) + 1; // Compute...
Ryan Ginstrom
ryanginstrom
Offline Send Email
Sep 2, 2004
8:52 am
9841
"Johann Gerell" <johann@...> wrote in message news:20040902080559.21F09FBA3D@... ... T2W does _not_ produce a valid BSTR. It allocates a...
Igor Tandetnik
itandetnik
Offline Send Email
Sep 2, 2004
1:53 pm
9842
because i can't attach file here ,so i posted on codeguru http://www.codeguru.com/forum/showthread.php?t=308992...
succeeded918
Offline Send Email
Sep 6, 2004
5:28 am
9843
... When handling WM_CONTEXTMENU: POINT pt = {GET_X_LPARAM(lParam),GET_Y_LPARAM(lParam)}; HWND hwndHit = ::WindowFromPoint(pt); -roger...
Roger Headrick
lilsroro
Offline Send Email
Sep 6, 2004
11:37 am
9844
... To be more correct: POINT pt = {GET_X_LPARAM(lParam),GET_Y_LPARAM(lParam)}; if((pt.x == -1) && (pt.y == -1)) { // used keyboard to show menu ... } HWND...
Roger Headrick
lilsroro
Offline Send Email
Sep 6, 2004
12:19 pm
9845
... hi, roger, thanks for ur reply. but i have tried windowfrompoint, but it still return the rebar...
succeeded918
Offline Send Email
Sep 7, 2004
12:55 am
9846
... Sorry. You could try the following: If the rebar is hit, then you could use the RB_HITTEST message to determine the index of the band that was hit. If a...
Roger Headrick
lilsroro
Offline Send Email
Sep 7, 2004
4:38 am
9847
... you ... thanks, this works :)...
succeeded918
Offline Send Email
Sep 7, 2004
2:24 pm
9848
Hello all, More of an API question than WTL: I am wanting to detect a keypress on a popup menu. I have found that handling the WM_MENUCHAR message works great...
Aaron Hudon
ajhuddy2000
Offline Send Email
Sep 7, 2004
3:31 pm
9849
Hi, It's question about windows common control and not about WTL. But I hope you will help me. I have a problem. When I create dynamically edit control it has...
Serhiy Serbin
srs@...
Send Email
Sep 7, 2004
3:31 pm
9850
"Aaron Hudon" <aaronh@...> wrote in message news:chkk7l+sii3@eGroups.com ... Since you have menu handle, perhaps you can enumerate all items and look for...
Igor Tandetnik
itandetnik
Offline Send Email
Sep 7, 2004
3:39 pm
9851
If I have a bunch of dialogs like this : class CAboutDlg : public CDialogImpl<CAboutDlg,CAnimateWindow> { }; class CMaterials : public CDialogImpl<CMaterials> ...
Eamonn Wallace
oopla2001
Offline Send Email
Sep 7, 2004
3:54 pm
9852
Hi ... You don't have a common base class, so you can either add one (eg. an interface) or make your SomeFunction a template function: template< class T > ...
Paul Grenyer
paulgrenyer
Offline Send Email
Sep 7, 2004
3:57 pm
9853
"Eamonn Wallace" <eamonnwallace@...> wrote in message news:092001c494f3$1f3fdfa0$010aa8c0@Broomhall ... Apparently, all your dialog classes need to have...
Igor Tandetnik
itandetnik
Offline Send Email
Sep 7, 2004
4:00 pm
9854
... ugly ... If the parent's message map has REFLECT_NOTIFICATIONS(), or if the WM_CTLCOLOREDIT message is being explicitly handled by your application, it...
Roger Headrick
lilsroro
Offline Send Email
Sep 7, 2004
4:06 pm
9855
... Create ... dialogs ... Parliament], 'Pray, ... right ... This thread reminded me of a good article in the VC 6.0 MSDN Library. Dale Rogerson's article...
eengineertech
Offline Send Email
Sep 8, 2004
1:15 am
9856
//first i create a toolbar from resource, all buttons are bitmap buttons that doesn't have text HWND hWndToolBar = CreateSimpleToolBarCtrl(m_hWnd, uResID,...
succeeded918
Offline Send Email
Sep 8, 2004
1:18 am
9857
Thanks to those who replied, nice ideas... Anyway this is my actual problem: ViewRecordListener is a pure virtual class that provides : void...
Eamonn Wallace
oopla2001
Offline Send Email
Sep 8, 2004
7:58 am
9858
... but ... by the way i need tooltip for the button...
succeeded918
Offline Send Email
Sep 8, 2004
8:11 am
9859
Never mind my last post I've figured out a workable solution. Here it is , stripped of baggage, if anybody has a better idea then I'd love to hear it. Many...
Eamonn Wallace
oopla2001
Offline Send Email
Sep 8, 2004
9:46 am
9860
Can you not simply write, template< class T > class EditorActions : private ViewRecordListener { public: EditorActions { } void...
Paul Ranson
paul@...
Send Email
Sep 8, 2004
9:59 am
9861
... FALSE, ... Set max text rows to 0 with the TB_SETMAXTEXTROWS message. -roger...
Roger Headrick
lilsroro
Offline Send Email
Sep 8, 2004
10:36 am
Messages 9832 - 9861 of 16191   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help