|
why ?
i always include the standard C++ headers in uppercase, as the include file names are written like that...
please explain your feeling
|
|
|
|
|
It is standard practice when writing portable code. On some systems, such as Linux, the file system is case sensitive. The standard headers are required to be lowercase.
Steve
|
|
|
|
|
The code you've shown is fine. Something else is at play, like using the /Za compiler switch.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It should work. Are you using pre-compiled headers? If so did you put the
stdafx.h before the string include?
|
|
|
|
|
Hi everyone,
in my project, i have a DataGrid. If i size the ChildWindow, i refresh the number of rows of the grid
relative to the height.
At the refresh-function i need to change and load some things ( for example a new record from the DB )
So it takes a certain duration.
If i resize the Frame slowly, it works nice.
But if i resize it very fast, so there a many callings to resize the form.
For that reason i will lock the "Refresh-function" and only refresh at the end of the resizing.
But how can i "see" that the user has stopped the resizing of the frame?
Any ideas?
Big thanks
|
|
|
|
|
Hmm when the resizing stops, the user as released the mouse... maybe you can catch this event and look everytime its called if there had been a resizement.
Maybe by a "locking" variable in your "refresh Function"
-> Mosedown -> lock enable refresh part not called
-> Moseup -> lock release -> refresh/paint
|
|
|
|
|
Yeah, i had the same idea, but the Resizing-Border of the View nor of the Frame will call a MouseUp-Event
Trotzdem Danke
|
|
|
|
|
Trapping the mouse will have no effect when sizing, you should try using the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE . BTW. these two messages are only sent to the main window and not child controls. Another message you could try trapping is the WM_WINDOWPOSCHANGED .
|
|
|
|
|
Great!
Thanks !
|
|
|
|
|
Hi, i have a problem... how i implement the canc button in list box?
The message WM_KEYDOWN and WM_CHAR don't work.
thanks....
Giulio
|
|
|
|
|
What do you intend to do?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I want cancel an element on list box....
|
|
|
|
|
only with the canc button on the keyboard
|
|
|
|
|
Ing.Raiz82 wrote: the canc button on the keyboard
My (UK) keyboard doesn't have a "canc" button
Do you mean delete?
|
|
|
|
|
yes i mean delete button on the keyboard...
sorry for my english...
|
|
|
|
|
|
Thanks.... a lot....
Giulio
|
|
|
|
|
Di nulla.
Carlo
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Ing.Raiz82 wrote: ...the canc button in list box?
What exactly do you mean by this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All,
I have a Dialog with a listBox, Now i want to give the user an option of deleting an entry from list by selecting it and hitting the delete key in the key board? Can Any one help me on this?
Thanks.
|
|
|
|
|
You need to handle the key press - you can override OnVKeyToItem in your dialog
afx_msg int OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex);
Something like
int CMyDlg::OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex)
{
if( nKey == VK_DELETE )
{
pListBox->DeleteString( nIndex );
}
return CDialog::OnVKeyToItem(nKey, pListBox, nIndex);
}
(You'll also have to set "Want Key Input" to true in the properties for your list box in the resources editor)
|
|
|
|
|
Thank you some much...
in fact the message WM_KEYDOWN don't work... i think for the focus on the listbox...
now i try OnVKeyToItem...
thanks..
|
|
|
|
|
Hi all,
I'm trying the following without success and I have no idea why
Could someone please help.
Many thanx ...
Sorry about that - miss type....
<code>
char string[100];
struct
{
char fileStr[100];
}gList[100];
for loop
{
strcpy((char*)string,(char*)gList[x].fileStr);
strcat((char*)string," OK");
...
}
OUTPUT EXAMPLE: testFile.txt OK
</code>
-- modified at 9:19 Monday 27th November, 2006
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
can you include the declaration (and perhaps the definition...) of responseBirstring ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I have corrected the code snippet above,
But not even this wants to work....
gBirList[x].BirfileNames would have the following in it...
ex:
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
file6.txt
<code>
loop...
strcpy(gBirList[x].BirfileNames," OK");
</code>
OUTPUT EXAMPLE:
file1.txt OK
file2.txt OK
file3.txt OK
file4.txt OK
file5.txt OK
file6.txt OK
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|