I write down these 2 lines. CFindReplaceDialog* dlg = new CFindReplaceDialog(); dlg->Create(TRUE, _T("aaa"), NULL, FR_DOWN, *this); but, nothing popup. when i...
15887
Igor Vigdorchik
igorv007
Mar 1, 2009 4:12 pm
Try adding these lines: dlg->SetActiveWindow(); dlg->ShowWindow(SW_SHOW); MTPad WTL sample shows how to use this class. Regards, Igor. ...
15889
hawkgao
Mar 1, 2009 4:46 pm
Great! It's shown. Thank you so much Igor. MTPad is a wonderful example, but it's a little complex for me. and no document here for it. WTL study is a tough...
15890
jgdavies52
Mar 1, 2009 7:11 pm
I have these references which may help: // See http://www.codeproject.com/wtl/wtl4mfc9.asp for WTL wrapper for Open File dialog. // Also see...
15891
hawkgao
Mar 2, 2009 2:32 am
Thank you for you material....
15892
Paul Selormey
pegroups
Mar 2, 2009 4:27 am
Hello Robert, Thanks fo the information. After your confirmation (I had never created WTL MDI application, only SDI), I created another WTL sample and it works...
15893
hawkgao
Mar 2, 2009 6:05 am
I type find string in text box, then hit enter on keyboard, nothing happened. only click FindNext button can send out the find message. finally i found main...
15894
domehead100
Mar 2, 2009 6:41 am
... Yes, as you noted, since the find dialog is non-modal, it doesn't have it's own message loop and the message loop for the parent GUI thread is used. Check...
15895
hawkgao
Mar 2, 2009 6:50 am
Thank your suggestion....
15896
amante1il
Mar 2, 2009 12:27 pm
Hi, I have ReBar in my MainFrame that have a few ToolBars on it. I would like to add a wide static control to one of the toolbars. I tried to modify...
15897
robert679078
Mar 5, 2009 8:17 am
I wrote the ToolbarHelper - all you need is something like the code below (add it to the CToolBarHelper class). Call it with: ...
15898
hawkgao
Mar 6, 2009 8:16 am
there is no proper common control for this. i found somebody use richedit to implement it. so, EN_LINK notify message should be handled. it's too boring....
15899
Alain Rist
arnavpoch
Mar 6, 2009 8:37 am
Hi Hawk, The about dialog of the WtlOOo sample at http://www.codeproject.com/KB/wtl/Wtl_OOo.aspx // aboutdlg.h : interface of the CAboutDlg class #pragma once ...
15900
Igor Vigdorchik
igorv007
Mar 6, 2009 2:12 pm
Take a look at http://www.codeproject.com/KB/wtl/CBitmapHyperLink.aspx Regards, Igor. ________________________________ From: Alain Rist <ar@...> To:...
15901
tsehonkit
Mar 7, 2009 12:50 pm
Hello there, Do anyone have the experience in making a transparent tracker(slider) control? I have no idea! Thank in advance. Kit...
15902
hawkgao
Mar 7, 2009 2:14 pm
I not sure how to do it exactly. but, i can give you some hints. process the message send from slider control. then, in the callback function for that message,...
15903
hawkgao
Mar 7, 2009 2:18 pm
Thanks. I didn't know WTL has an implement of hyperlink control before Alain's suggestion. now, i know it. WTL is so cool. it has almost every thing...
15904
Timo Kunze
timosoft2001
Mar 8, 2009 7:39 pm
Handle WM_CTLCOLORSTATIC. I doubt you can use this message to make the control really transparent, but you could use it to create a pattern brush out of the...
15905
Timo Kunze
timosoft2001
Mar 8, 2009 7:41 pm
Handle WM_CTLCOLORSTATIC. I doubt you can use this message to make the control really transparent, but you could use it to create a pattern brush out of the...
15906
tsehonkit
Mar 9, 2009 2:07 am
Thanks for your advise! I tried this one but no effect! Here is the code I used. If the background is ok, I will try to custom draw the slider. So, there are...
15907
domehead100
Mar 9, 2009 3:05 am
I think your parent (m_wndThemeParent) should be obtained via GetParent() rather than GetTopLevelParent(). I have no idea if this would work for what you need,...
15908
carr 帅
shuaixh
Mar 9, 2009 6:12 am
I insert a datagrid control in a WTL application. i add this in stdafx.h: #import "c:\\windows92;\system32\\MSDATGRD.OCX" no_namespace some compile error...
15909
hawkgao
Mar 9, 2009 6:13 am
int GetLine(int nIndex, LPTSTR lpszBuffer, int nMaxLength) const { ATLASSERT(::IsWindow(m_hWnd)); *(LPWORD)lpszBuffer = (WORD)nMaxLength; //WRONG! assign...
15910
hawkgao
Mar 9, 2009 6:25 am
This article may help you to host activeX control. http://www.codeproject.com/KB/wtl/wtl4mfc6.aspx by the way, chinese characters mix with western characters...
15911
Alain Rist
arnavpoch
Mar 9, 2009 7:06 am
In the doc for EM_GETLINE: 'Before sending the message, set the first word of this buffer to the size, in TCHARs, of the buffer.' ... From: hawkgao To:...
15912
hawkgao
Mar 9, 2009 7:47 am
I have tried this member function. I use a 65536 TCHARes long buffer. it returned an empty line to me. nothing can be gotten....
15913
hawkgao
Mar 9, 2009 7:52 am
and there is another curious thing. when i call GetLine(int nIndex, LPTSTR lpszBuffer), the sister function of GetLine(int nIndex, LPTSTR lpszBuffer, int...
15914
Alain Rist
arnavpoch
Mar 9, 2009 7:53 am
Try with 65535 and guess why it will work :) ... From: hawkgao To: wtl@yahoogroups.com Sent: Monday, March 09, 2009 8:47 AM Subject: Re: [wtl]NO Bug in...
15915
hawkgao
Mar 9, 2009 7:57 am
Oh, sorry. I got it. 65536 is exceed the max of WORD type. it's 0x100000. from the view of EM_GETLINE, the buffer is ZERO! Thank you Alain!...
15916
carr 帅
shuaixh
Mar 9, 2009 7:58 am
... 发件人: hawkgao <hawkgao@...> 主题: [wtl] Re: datagird control in wtl 收件人: wtl@yahoogroups.com 日期: 2009年3月9,周一,下 ...