|
No space, I added inthe menu editor directly.. All the rest of the itemas are folowed by some integers in the caption, but looking normaal during run time, so I also tried adding some int but, did not work,
|
|
|
|
|
How do you add your item (i.e. please post relevant *.rc line and possibly the line corresponding to a working menu item)?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
No not in .rc file directly , I added inthe menu editor. All the rest of the items are folowed by some integers in the caption, but looking normaal during run time, so I also tried adding some int but, did not work, I would like to know, where the manipulation has been dont
|
|
|
|
|
No space, I added inthe menu editor directly.. All the rest of the itemas are folowed by some integers in the caption, but looking normaal during run time, so I also tried adding some int but, did not work, I am looking around,, to find where the manipulation has been done..
|
|
|
|
|
ptr_Electron wrote: No space, I added inthe menu editor directly..
Eventually the menu editor writes inside the resource script (*.rc ) file hence, please, locate the entries inside it and post them.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
yes, that is ture... please find the lines below
POPUP "&Window"
BEGIN
MENUITEM "&New Window", ID_WINDOW_NEW
MENUITEM "&Cascade", ID_WINDOW_CASCADE
MENUITEM "&Tile", ID_WINDOW_TILE_HORZ
MENUITEM "&Arrange Icons", ID_WINDOW_ARRANGE
END
POPUP "Help_203"
BEGIN
MENUITEM "Contents_204", ID_NAV_HELP_CONTENTS
MENUITEM "About_269", ID_APP_ABOUT
MENUITEM "Preferences_598", ID_NAV_PREFS, GRAYED
MENUITEM "Guide", ID_NAV_LG END
MENUITEM "LG", ID_MF_LG, this is the one I added, It is displayed as "@Guide@" instead og "Guide" during run time,
|
|
|
|
|
Maybe the application manipulates such strings at runtime. Check for menu API calls (such as GetMenu ) inside source code.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
yes it manipulated internally,, thank you very much...
|
|
|
|
|
Hi
I am using ListControl in my project to show thumbnail view of jpeg images.ListControl displaying perfectly on Windows XP. Jpeg images are showing in multiple rows format, but when I used same code on Vista operating system, Listcontrol display with single column of images. So let me know that is there any setting need to work ListControl on Vista OS.
ABM
|
|
|
|
|
Hi,
I am working on property sheets. I have initially added 5 pages. I am using the SetWizardMode().
In the 3rd page, OnWizardNext(), based on some condition, I am trying to remove the 4th page using RemovePage(3). But I am unable to do so.
Please let me know as how this could be done at runtime.
Taruni
|
|
|
|
|
Taruni wrote: But I am unable to do so.
Why ? What is the exact problem ?
EDIT: by the way, do you know that you can return the ID of the page you want to be displayed when you hit OnWizardNext ? So you could do that instead of removing the page.
modified on Thursday, April 3, 2008 3:02 AM
|
|
|
|
|
I have a propertysheet with 5 pages. The following is the OnWizardNext() of page3.
LRESULT CPage3::OnWizardNext()
{
if(Value == 1)
{
sheet.RemovePage(&sheet.page4);
}
return CPropertyPage::OnWizardNext();
}
At run time, when the "Value" is 1, I shouldn't get page4 tab. I should remove that. But I am unable to do so.
Is my code correct? Please let me know.
Taruni
|
|
|
|
|
Taruni wrote: sheet.RemovePage(&sheet.page4);
What's that ? You said you were using RemovePage(3). What is page4 here ?
|
|
|
|
|
As the parameter to the RemovePage is 0 based index of the page, I have tried to remove the page 4 by saying, sheet.RemovePage(3) and also I have tried by passing the reference of the page.
sheet.RemovePage(&sheet.page4);
But I was unable to remove the page.
Taruni
|
|
|
|
|
Taruni wrote: sheet.RemovePage(&sheet.page4);
What happens if you ever need to re-add the page? Have you considered something like:
LRESULT CPage3::OnWizardNext()
{
if (Value == 1)
return 3;
else
return CPropertyPage::OnWizardNext();
}
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Your CPMRU is running low on power?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Nah, it's still broken . I should ask for a new one, seems it is required those days
|
|
|
|
|
Hi all,
i m working on VC++2005,in my application when i m edit dialog box or any resource of aaplication it may be ICON,Bitmap or any thing else.and run my application.
an error occured that is"error RC2135 : file not found: Data Doctor's Employee Planner.tlb"
and it indicate in .rc file on this line"1 TYPELIB "Data Doctor's Employee Planner.tlb" if i m comment this line it is occured again when i m edit any resource.
i dont know what is this and how can i solve this.
please tell me.
thanks in advance.
|
|
|
|
|
ThatsMe. wrote: i dont know what is this and how can i solve this.
please tell me.
Try this.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i am trying to connect to my ftp server using sockets...
i want to send a file every time i modify... the program is incomplete...
it is working... but i am not clear of how to keep the connection live...
i am sending the commands to port 21
out ="USER username\r\n";
out += "PASS pass\r\n";
out+= "ACCT ftp.domain.com\r\n"
out+= "LIST\r\n";
out += "CDUP\r\n";
iResult = send( ConnectSocket, out.c_str(), out.length(), 0 );
the result is - the word username will have the login name
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 5 of 50 allowed.
220-Local time is now 00:57. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
331 User username OK. Password required
230-User username has group access to: username
230 OK. Current restricted directory is /
202 Please tell me who you are
425 No data connection
250 OK. Current directory is /
250 Logout.
if i have to send a file then how it should suppose to be ?
that is what is the rule to construct the ftp command for that...
__________________
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Is there any API in win32 to enable Junk mail options in outlook mail doing it programatically.
If so please let me know
|
|
|
|
|
I'm learning computer science by myself right now.
But I have some problems which confuse me a lot.Especially in VC++ programming.
Who kindly enough to help me? My msn wx_bornfree@live.cn.
Thanks for your help!
modified on Thursday, April 3, 2008 8:03 AM
|
|
|
|
|
|
bornunique wrote: Who kindly enough to help me? My msn wx_bornfree@live.cn.
Oooh me, me. I'll help. My rates are cheap at £100 per hour and powdered unicorn horn. Please reply me at peter@werenotstupid.com.
|
|
|
|
|
Pete O'Hanlon wrote: peter@werenotstupid.com
Ironic choice of domain considering, according to an email message I just received in reply to one I sent to you, you haven't configured your mail server correctly!
Brad
Australian
The PHP MVP
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|