Skip to search.
wtl · WTL support list

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

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

Messages

  Messages Help
Advanced
Messages 9832 - 9861 of 16586   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
9832 tarun.kanal@...
tarunkanal Offline Send Email
Sep 2, 2004
7:08 am
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...
9833 pablo_alch Offline Send Email Sep 2, 2004
7:37 am
... Yes, this is correct. Consider the alternative: BSTR Detach() { BSTR garbage = m_str; ... m_str = NULL; return garbage; } This function is supposed to...
9834 Kim Gräsman
kimgrasman Offline Send Email
Sep 2, 2004
7:40 am
Hi Tarun, ... That's what Detach() does. It transfers ownership of the string to the caller. ... What do you do with *bstrBuffer afterwards? Kim...
9835 Pablo Aliskevicius
pablo_alch Offline Send Email
Sep 2, 2004
7:41 am
... 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...
9836 Edwards, John
johnesage Offline Send Email
Sep 2, 2004
7:51 am
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...
9837 tarun.kanal@...
tarunkanal Offline Send Email
Sep 2, 2004
7:51 am
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:...
9838 Johann Gerell
unsygn Offline Send Email
Sep 2, 2004
8:06 am
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:...
9839 Ryan Ginstrom
ryanginstrom Offline Send Email
Sep 2, 2004
8:32 am
... Then how about: CComBSTR tmpRes ; tmpRes.LoadString( IDS_STRING_RES ) ; tmpRes.CopyTo( &OutStr ) ; Regards, Ryan ... Ryan Ginstrom ryang@......
9840 Ryan Ginstrom
ryanginstrom Offline Send Email
Sep 2, 2004
8:52 am
... Incidentally, the following is the most efficient way *I* know how to do it (lifted substantially from MSDN)... UINT block = (uid >> 4) + 1; // Compute...
9841 Igor Tandetnik
itandetnik Offline Send Email
Sep 2, 2004
1:53 pm
"Johann Gerell" <johann@...> wrote in message news:20040902080559.21F09FBA3D@... ... T2W does _not_ produce a valid BSTR. It allocates a...
9842 succeeded918 Offline Send Email Sep 6, 2004
5:28 am
because i can't attach file here ,so i posted on codeguru http://www.codeguru.com/forum/showthread.php?t=308992...
9843 Roger Headrick
lilsroro Offline Send Email
Sep 6, 2004
11:37 am
... When handling WM_CONTEXTMENU: POINT pt = {GET_X_LPARAM(lParam),GET_Y_LPARAM(lParam)}; HWND hwndHit = ::WindowFromPoint(pt); -roger...
9844 Roger Headrick
lilsroro Offline Send Email
Sep 6, 2004
12:19 pm
... 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...
9845 succeeded918 Offline Send Email Sep 7, 2004
12:55 am
... hi, roger, thanks for ur reply. but i have tried windowfrompoint, but it still return the rebar...
9846 Roger Headrick
lilsroro Offline Send Email
Sep 7, 2004
4:38 am
... 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...
9847 succeeded918 Offline Send Email Sep 7, 2004
2:24 pm
... you ... thanks, this works :)...
9848 Aaron Hudon
ajhuddy2000 Offline Send Email
Sep 7, 2004
3:31 pm
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...
9849 Serhiy Serbin
srs@... Send Email
Sep 7, 2004
3:31 pm
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...
9850 Igor Tandetnik
itandetnik Offline Send Email
Sep 7, 2004
3:39 pm
"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...
9851 Eamonn Wallace
oopla2001 Offline Send Email
Sep 7, 2004
3:54 pm
If I have a bunch of dialogs like this : class CAboutDlg : public CDialogImpl<CAboutDlg,CAnimateWindow> { }; class CMaterials : public CDialogImpl<CMaterials> ...
9852 Paul Grenyer
paulgrenyer Offline Send Email
Sep 7, 2004
3:57 pm
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 > ...
9853 Igor Tandetnik
itandetnik Offline Send Email
Sep 7, 2004
4:00 pm
"Eamonn Wallace" <eamonnwallace@...> wrote in message news:092001c494f3$1f3fdfa0$010aa8c0@Broomhall ... Apparently, all your dialog classes need to have...
9854 Roger Headrick
lilsroro Offline Send Email
Sep 7, 2004
4:06 pm
... ugly ... If the parent's message map has REFLECT_NOTIFICATIONS(), or if the WM_CTLCOLOREDIT message is being explicitly handled by your application, it...
9855 eengineertech Offline Send Email Sep 8, 2004
1:15 am
... Create ... dialogs ... Parliament], 'Pray, ... right ... This thread reminded me of a good article in the VC 6.0 MSDN Library. Dale Rogerson's article...
9856 succeeded918 Offline Send Email Sep 8, 2004
1:18 am
//first i create a toolbar from resource, all buttons are bitmap buttons that doesn't have text HWND hWndToolBar = CreateSimpleToolBarCtrl(m_hWnd, uResID,...
9857 Eamonn Wallace
oopla2001 Offline Send Email
Sep 8, 2004
7:58 am
Thanks to those who replied, nice ideas... Anyway this is my actual problem: ViewRecordListener is a pure virtual class that provides : void...
9858 succeeded918 Offline Send Email Sep 8, 2004
8:11 am
... but ... by the way i need tooltip for the button...
9859 Eamonn Wallace
oopla2001 Offline Send Email
Sep 8, 2004
9:46 am
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...
9860 Paul Ranson
paul@... Send Email
Sep 8, 2004
9:59 am
Can you not simply write, template< class T > class EditorActions : private ViewRecordListener { public: EditorActions { } void...
9861 Roger Headrick
lilsroro Offline Send Email
Sep 8, 2004
10:36 am
... FALSE, ... Set max text rows to 0 with the TB_SETMAXTEXTROWS message. -roger...
Messages 9832 - 9861 of 16586   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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