|
|
i created a treelist of items but wish to display the names of the items selected (on single click) in another list box one by one. How to create such a function?
|
|
|
|
|
Please map the TVN_SELCHANGED function then Get the Current selected item by calling the
HTREEITEM hTreeItem ;
CString StrSelectedText ;
hTreeItem = TreeCtrl.GetCurrentSelectedItem ();
StrSelectedText = TreeCtrl.GetItemText(hTreeItem);
Now Set this text in the Edit Ctrl by calling the
Edt_Ctrl.SetWindowText();
Please set the appropriate parameter.
Thanx
TAKE CARE
|
|
|
|
|
I am wondering if i add a button in an SDI, then can i create another view window when button is pressed?
|
|
|
|
|
I need to launch another console program in my application. But I don't want that the console programs shows the console window.
Any way?
Thanks
|
|
|
|
|
Have you looked at CreateProcess() ?
|
|
|
|
|
You can use ShellExecute or ShellExecuteEx and set the nShowCmd parameter to SW_HIDE or look at the CreateProcess function.
Lan
|
|
|
|
|
Check out the STARTUPINFO structure that is passed to CreateProcess(). The STARTF_USESHOWWINDOW bit in the dwFlags element may do the trick.
Brad
|
|
|
|
|
Thank you very much.... CreateProcess() is the solution.
|
|
|
|
|
I have a problem with updating text in a textbox created with Modeless Dialog Box. Anyone has any solutions?
The problem is the text created is fixed and it shows up. when i try to change the text after 5 secs,using a WM_TIMER to update the textbox, it did not update.
|
|
|
|
|
|
i use the CreateWindow to create The Dialog Box
In The Form, i preset the values in the textbox such as "Testing"
on the InitDialog msg, i change the textbox msg to "Test Completed using SetDlgItemText, then i refresh the window using UpdateWindow.
|
|
|
|
|
try calling Updatedata with aprropriate parameters.
Thanx
TAKE CARE
|
|
|
|
|
I try to call the SetBkColor method of the CProgressCtrl and get the following error:
<br />
Compiling...<br />
FlashDialog.cpp<br />
c:\viewstore\beekb_snapview\testtool\ttmod_atapi\src\flashdialog.cpp(129) : error C2039: 'SetBkColor' : is not a member of 'CProgressCtrl'<br />
c:\program files\microsoft visual studio\vc98\mfc\include\afxcmn.h(477) : see declaration of 'CProgressCtrl'<br />
Error executing cl.exe.<br />
The CProgressCtrl does not have a SetBkColor Method? MSDN clearly specifies it does!
|
|
|
|
|
You need to look at the documentation that came with VC6.
SetBkColor is a new method in MFC 7.x.
To achieve the same goal, use SendMessage to send the progress bar a PBM_SETBKCOLOR message.
|
|
|
|
|
Hello, Sir:
Now i have some trouble with the FPU. I need test CPU FPU function, it include "FPU Exception Test", "FPU Control Register Test", "FPU Tag word Register Test" and "FPU Calculation Test". And I don't how can test those really. I have studyed IA-32 Intel® Architecture Software Developer’s Manual, and knew some about FPU. Do you know how to "test" such FPU fuction. Do you have a example about those, or give me some advice? I am helpless, waiting...
|
|
|
|
|
How best create CHM visually ?
-by which program?
Does it keeps DHTML ?
|
|
|
|
|
CHM files contain HTML that has been compiled and linked through a table of contents and optional index. You use the Microsoft HTML Help Workshop to do this. Any good HTML editor can be used to create the source files.
Some of the commerical help authoring tools out there may provide more sophisticated design and editting features, but in theory you can get by with Notepad.
Since the IE rendering engine is used, I think any DHTML is also valid. The Platform SDK help uses DHTML, for example.
Brad
|
|
|
|
|
I want create CHM from existing internet files -that was downloaded by IE,
by seconds.
That is- run program - press include file- press complile- result received.
VISUAL CHM is a sample,
but do not works with DHTML.
|
|
|
|
|
Just curious as to how one could create the equivalent of .Net Attributes as used in C# in C++ in a non .Net environment. Any links or pseudo code would be great.
Thanks
|
|
|
|
|
Some programs very dislike DHTML,
for sample Viasual CHM4.0,
(chm creator)
they need to eliminate all DHTML from file to work correctlu with them.
Is there utilities that can remove DHTML from file ?
Thanks.
|
|
|
|
|
Hi
The text on every line from a multi-line editbox should be added to a 'CStringArray'.
This works most of the times, but sometimes not. When there is little typed into the edit box, like 1 character ... the array isn't filled.
(added the code below)
for example:
I've typed in the editbox 'a' then debugged it.
It appears that iLen gets on '1' but iDummy is left on '0'. strTemp is empty too so he doesn't add the text to the array.
Can anyone see the mistake i have made?
<br />
CString strTemp;<br />
CEdit* pEdit = (CEdit*) GetDlgItem(MY_EDIT);<br />
CStringArray m_array;<br />
m_array.RemoveAll();<br />
<br />
for (int i=0; i<(pEdit->GetLineCount()); i++)<br />
{<br />
int iLen = pEdit->LineLength(pEdit->LineIndex(i));<br />
int iDummy = pEdit->GetLine(i, strTemp.GetBuffer(iLen));<br />
strTemp.ReleaseBuffer(iLen);<br />
if ( iDummy != 0 )<br />
{<br />
m_array.Add(strTemp);<br />
}<br />
strTemp = "";<br />
}<br />
|
|
|
|
|
Only suggestion:
If CEdit::LineLength() and CEdit::GetLine behave different concerning the terminating '\0' you may solve the problem by changing strTemp.GetBuffer(iLen) to strTemp.GetBuffer(iLen+1)
Another tipp from the documentation of CArray in MSDN:
"Before using an array, use SetSize to establish its size and allocate memory for it. If you do not use SetSize, adding elements to your array causes it to be frequently reallocated and copied. Frequent reallocation and copying are inefficient and can fragment memory."
MS
|
|
|
|
|
The m_array.RemoveAll(); statement is not necessary as there is obviously nothing in the array to remove.
The int iLen = pEdit->LineLength(pEdit->LineIndex(i)); statement should probably be int iLen = pEdit->LineLength(i); instead.
|
|
|
|
|
Hi all! I'm new to SAPI and I was wondering how you can get your application to use another speech engine other than the MS ones. I installed the Dragon Naturally Speaking 7 engine but it doesn't show up in the speech properties dialog so you can't select it. I've heard that you can use SpEnumTokens() to find all the engines available but am I right in thinking that this only searches in the Microsoft directory in the registry and not any others? Please help me! I'm desperate!!
Thanks for ANY help!
|
|
|
|