|
|
hmm, it would work by using a thread, but not realy good.
The line is sometimes disappearing when I'm ingame.
Does somepne have a better idea?
|
|
|
|
|
It's no problem drawing anywhere on the screen but how are you going to time redraws properly
as the game refreshes it's screen?
Great job, team. Head back to base for debriefing and cocktails.
|
|
|
|
|
Does no one have a better idea?
the idea by drawing with GDI isn't working really good!
|
|
|
|
|
How can i change the minimize and maximize boxes icons in window?
|
|
|
|
|
urid wrote: How can i change the minimize and maximize boxes icons in window?
To what?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Owner draw and overwrite CWnd::OnNcPaint .
But I have no practical experiences with that.
Failure is not an option - it's built right in.
|
|
|
|
|
And also on the codeproject is articles about insert buttons to system menu and change color did you search codeproject
|
|
|
|
|
Sorry I confused some where. so let me post this massage again. Any body kwown please show me how to use List Controlfor in my case that is explained as following:
In my dialog, I created two ListBox1 and ListBox2 with multiline and 1 button Send. So when I push button send the String ar row 1 form ListBox1 will be send to ListBox2, that means the string in row 1 of List control 1 will be disappeared and insert to row 1 of ListBox2, the sequence is run step by step up to there is no string in ListBox1
Thank very much.
|
|
|
|
|
Kiethnt wrote: Sorry I confused some where. so let me post this massage again.
Why don't you modify your previous post?
|
|
|
|
|
try following code.
if( ListBox1.GetCount() > 0 )
{
CString csText;
ListBox1.GetText( 0, csText );
ListBox2.AddString( csText );
ListBox1.DeleteString( 0 );
}
where ListBox1 is the control variable for the listbox 1 and ListBox2 is the control variabale for the listbox 2.
nave
|
|
|
|
|
My program had run already, I really thank for your help Naveen R. However, the problem here is I want the string will be send continuosly when I push Send button once only.
One more question I would like ask you that how to write all string in a Listbox control to file .txt and read string in text file to Listbox control.
Please help me solve this problem.
|
|
|
|
|
CStdioFile File;
File.Open( _T("C:\\listboxdata.dat"), CFile::modeCreate|CFile::modeWrite );
int nCount = m_list.GetCount();
for( int nIdx =0;nIdx< nCount;nIdx++ )
{
CString csText;
m_list.GetText( nIdx, csText );
File.WriteString( csText );
}
File.Close();
Do the reverse for reading...
nave
|
|
|
|
|
Can you show your code how do you use of it
|
|
|
|
|
Any body kwown please show me how to use List Controlfor in my case that is explained as following:
In my dialog, I created two List Control 1 and List Control 2 with multiline and 1 button Send. So when I push button send the String ar row 1 form List control 1 will be send to List control 2, that means the string in row 1 of List control 1 will be disappeared and insert to row 1 of List control 2, the sequence is run step by step up to there is no string in List control 1
Thank very much.
|
|
|
|
|
Same question isnt helpfuls for get answer
|
|
|
|
|
All,
Did any one used the MS script control for developing, executing VBScripts from the VC++ application ?
Provide me details regarding, how to use the script engine to aware of the VBScript code, what are all the things that I need to take care before and after executing the VBScript from my application developed using VC++.
Are there any tutorials which talks about these topics ?
Any suggestions or Links, please let me know in detail.
Thanks in advance,
AKS
|
|
|
|
|
Any inputs from anybody from this forum?
|
|
|
|
|
Hi all,
How can I set the focus to a MessageBox. For example: When a certain key is pressed, I show a messagebox asking the user a question. If the user would answer No the program continues as normal. And when the user presses that same key the messagebox displays, but behind the application.
Makes sense ??
Thanx in advance
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
try this.
MessageBox(GetFocus(),
"String to be displayed",
"Title",
MB_TASKMODAL | MB_YESNO).
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Thank you NiceNaidu, it seems like it did the job ...
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
I wants to get the full path of desktop and my document folder.
Can some one suggest how to do the same in VC++
|
|
|
|
|
|
Thanks for quick reply. I was just looking for this function
|
|
|
|