|
|
yashveer wrote: Where do i change the name of my exe??
When i run it, it shows Untitled-ProjectName....
"Untitled" is not the name of your application. What you are referring to is the caption text. You did not indicate on which side of the '-' you wanted to change, so my suggestion is for the right side. The preferred method is to change IDR_MAINFRAME in the string resource table.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yashveer wrote: Where do i change the name of my exe??
You set it with CDocument::SetTitle() .
Normaly - loading a Document automagically changes the Document title to "DocumentName - ProjectName"
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
jhwurmbach wrote: CDocument::SetTitle()
That, on my opinion, doesn't change the name of the exe file...but only the title on the window of the application
Russell
|
|
|
|
|
That is true.
I was under the impression that he was unhappy with the "Untitled-" part of what he thought was the name of his EXE.
But you are right - he might have wanted to change something different.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
I readed again the question, it isn't clear ... Probally you get the real question
Russell
|
|
|
|
|
True i was not happy with the 'Untitled' part.
I changed it in string table
Thnks
|
|
|
|
|
|
_Russell_ wrote: That, on my opinion, doesn't change the name of the exe file...
Which the OP was not wanting to do. He clearly wanted to alter the caption. He just failed to indicate which part.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Isn't it funny how we all try to anticipate what some scribbled sentence without apparent orthography might have meant, if the user really would have known what he talked about?
Well - Friday
Or, as a unixish friend of mine has on his T-Shirt:
cd /pub
more beer
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
|
jhwurmbach wrote: ...if the user really would have known what he talked about?
I read a quote someplace that so eloquently stated such. Something about most problems being solved by simply asking the right question.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: I read a quote someplace [...] about most problems being solved by simply asking the right question.
Sure.
But on the other hand, can I be expected activly get the information the asker should have provided in the first place.
Far too much people use this forum as an excuse for not googleing (or even not thinking). And while I not know about the OP of this thread, I have long since switched to a "guilty until proven innocent" mode.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
yes...sorry. Readed too fast
Russell
|
|
|
|
|
The name of the exe file generated is set by the linker:
Project Properties - "Linker" - "General" - "Output File"
This defaults to "Projectname.exe"
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
phew ....didnt know this thread would go so long
sorry for not being clear
I managed to change both the right and left sides of '-'
(Untitled-Project name) in string table.
Thanks for your help.
|
|
|
|
|
Hi All,
I used customized ListCtrl in my application. I derived class from CListCtrl clas. I add JPEG images in ListCtrl now i want to check that which JPEG image is selected by the user. I use following code but it does not return me image path or image name.
void
CSelectBusCategory::OnSelectItemFromList(NMHDR* pNMHDR, LRESULT* pResult)
{
int nItem,nSubItem,nLen;
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
*pResult = 0;
// CString strJPEGFileName = mWebPagePrvListCtrl.GetItemText(pNMListView->iItem,pNMListView->iSubItem);
// MessageBox(strJPEGFileName);
}
Is there any other code to retrive path of JPEG image
Thanks in Advance
Atul
|
|
|
|
|
Atulmahajan wrote: I use following code but it does not return me image path or image name.
Store that information by calling SetItemData() for each image added to the control. Then when you are responding to an image selection, call GetItemData() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for reply,
If I use SetItemData() function it takes 2 parameter 1)index 2) 32 bit DWORD value. I can pass index but what value should i pass to DWORD parameter.
Plz reply to this question.
Thanks in Advance
atul
|
|
|
|
|
Atulmahajan wrote: what value should i pass to DWORD parameter.
Remember that pointers to memory address are just 32-bit numbers.
char *pszPath = new char[29];
strcpy(pszPath, "c:\\windows\\system32\\calc.exe");
int nIndex = mWebPagePrvListCtrl.InsertItem(...);
mWebPagePrvListCtrl.SetItemData(nIndex, (DWORD) pszPath);
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
In addition to DavidCrow's reply - if the parameter for SetItemData() is a DWORD_PTR,
use that instead of a DWORD in the cast.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
I have a childframe derived from CMDIChildWnd on which there are 2 windows controls. One window control is a list box and another is an edit box . The list box is above the edit box.
When I keep the mouse cursor on the list box it appears as if the the mouse cursor is on the edit box and when I click the edit box gets clicked.
How can I bring the list box on the foreground and send the edit box in the background?
Pritha
|
|
|
|
|
You can use m_list.SetWindowPos( &wndTop, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE );
And I expect some painting issues...
m_edit.ModifyStyle( 0, WS_CLIPSIBLINGS ); may solve that issue.
Dont forget to let me know the results...
- NS -
|
|
|
|
|
I presume the two controls have the same coordinates, and you are swapping between them?
In addition to changing the Z order as NS17 showed you, you should also make the one you're not using disabled,
GetDlgItem (IDC_MYNEGLECTEDCONTROL)->EnableWindow (TRUE / FALSE) , or the user will end up selecting them using TAB - and they will be very puzzled why the things they are typing don't show up...
Iain.
|
|
|
|
|
prithaa wrote: How can I bring the list box on the foreground and send the edit box in the background?
call BringWindowToTop() for list box
|
|
|
|