|
hi all,
please tell me how i can change the color of Mainframe,like scrollbars.
thanks
Hari Krishnan
|
|
|
|
|
Have a look at GetSysColor/SetSysColors which
change the whole systems colors(which is not
exactly a good idea!)
The next thing is to go in for painting the non-client
areas(ex the title bar is non client area) for
some of the things and for others you need a
custom control.
|
|
|
|
|
I have got a desktop app written in VC++ 6.0.(MFC support) Now I have to convert it to an Arabic version. Can somebody help me know what are the steps involed in such a conversion process? I tried to create an Arabic resource using VC resource editor but didn't succeed !! Do I need to have Arabic Windows for that ? Any help on this is highly appreciated.
Thanks in advance.
|
|
|
|
|
I wrote an article that might help:-
http://www.codeproject.com/cpp/mult_lang_support.asp
I have always converted to European languages, there is a trick you can use the method is described in the article, basically you would need a copy of Visual C++ tha is in the language you are convering to, or convert all the text in the .rc scripts.
One of my freeware progs was converted to French this tool about a mornings work, but it did not have a lot of text to convert, and neither was teh help file converted.
|
|
|
|
|
csylesh wrote:
!! Do I need to have Arabic Windows for that ? Any help on this is highly appreciated.
Besides the usual of putting the application in UNICODE ( with UNICODE and _UNICODE in the settings ).
I don't think you need that, you simply need to set the locale/regional settings to arabic ( of your country if applicable ) in one of the control panels, and you also need to change the keyboard settings tu use the IME ( I only did this for oriental languages ) to type the Arab characters.
When changing the resources, you can't simply copy the files, and type in arabic, you need to change the language section of the RC file. The resources are not UNICODE, they are in code page, that's why you need to change your locale/regionale for it to work.
for example in english we have this :
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)<br />
#ifdef _WIN32<br />
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US<br />
#pragma code_page(1252)<br />
#endif //_WIN32
you'll need to change the language, sublanguage and codepage.
Good luck!
Max.
|
|
|
|
|
hi iam developing a Instant Messenger...
i want my message window to be yahoo like
which supports colors,gif's etc...
i am using a dialog based app as
my program has UI threads
and please let know how to create such a HTML-style
view in dialog box..
|
|
|
|
|
probably embedd a IE control in the top portion ??
Although I think that Yahoo has a customized
editor.
|
|
|
|
|
hi Prem
what is an IE control is it same as WebBrowerControl
|
|
|
|
|
I've set up a server using winsock, and it accepts
and deals with connections just fine and I'm happy
as a bunny, but is there a way to determine the IP
address of the remote client?
I know it must be possible, but I'm new to this
so thanks for any help!
|
|
|
|
|
Use getpeername .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I'm going nuts. Not a particularly arduous trip, given my starting point, but not pleasant in any event. I'm doing a trivial app ( for the rest of you, not me ) to add CDs to a database. As the primary input screen I have a dialog box that allows 16 rows of input, selected because I don't have any CDs that hold more tunes than that. In each row I have a group of radio buttons to indicate whether each track is a solo, a duet, or a group song. The first button of each row has the Group property set; the other two do not. In all other respects every button is identical, and this pattern is consistent for all rows.
When I compile and execute the code, row 8 interacts with row 9, though all other rows behave exactly as I'd planned. Row 8, by itself, works great, but when I select the second button in row 9, the third button in row 8 clears instead of the first button in row 9! Selecting the third button in row 9 clears the first in that row, but the second is unaffected.
I thought I had a clue when I discovered that the numerical order on the defines for the buttons was a bit skewed for these two rows, so I edited them to follow the proper sequence and saved the whole project. But after rebuilding all, the behavior persists! Suggestions would be most welcome - I'm out of ideas!
"How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)
|
|
|
|
|
They need to be in the order you want in the resource editor, so that the first of each group is first, followed by those in that group, then the next group starts. You should be able to do this by setting the tab order, and you may have done so, from what you said, and failed to save it OK. If that does not work, look in the resource file.
Or use C# and declare a radio button group. :P
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
If this wasn't so frustrating, I'd laugh. Every time I try to make VC do something useful, it pulls something like this on me, and I toss it out for a year or so. The order of the controls is correct, the files have been saved repeatedly, yet the behavior doesn't change. I suspect the next step will be to delete both rows and start over - I predict that this will cause the rest of the rows to misbehave, based on past experience with VC. The really annoying thing is that these two rows of buttons are set up exactly the same as the other 14 rows, and those 14 behave perfectly! There has got to be some setting somewhere that the IDE won't let me see that's causing this trivial thing to fail.
"How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)
|
|
|
|
|
Hi.
I am working on a HTTP client. I want the program to download a specific webpage. The program initializes a connection to the web server and requests index.html.
GET index.html
However, for some reason most web servers I tried have responded with errors about bad requests. I would like to know what is the HTTP command to download a website such as index.html?
Thanks,
Kuphryn
|
|
|
|
|
> telnet www.msn.com 80
Connecting to www.msn.com.....
GET / HTTP/1.1
Host: blah
Todd Smith
|
|
|
|
|
Okay. Thanks.
GET / HTTP/1.1
That works on some website, buts not all. I will continue debugging. HTTP programming is depends on more on the web server than an absolution solution on the client side.
How do popular web browser including IE and Netscape handle all web server? There are many possible HTTP commands and combinations.
Kuphryn
|
|
|
|
|
Some web servers requrie a valid Host: entry which is usually
Host: <your ip>
and some even check the Agent: header
Agent: Mozilla (blah blah)
Todd Smith
|
|
|
|
|
The GET line should contain the full URL and HTTP version:
GET http:
|
|
|
|
|
Okay. Thanks.
I will try that approach.
Some server require the Host to be exact. For instance, www.xyz.com might want members.xyz.com. There is no way to determine what the server wants without first seeing an error response.
Kuphryn
|
|
|
|
|
hi everyonebody,
i have a popup menu, activated by right click.. i want to disable some of the commands in the menu.. i was wondering how do i do it? i've different ways, but i can't seem to get it working.. any suggestion is welcome.. thanx in advance.
i've tried this:
void CMyApp::OnRMrclk(....)
{
CMenu menu;
CPoint point = GetMessagePos();
menu.LoadMenu(IDR_MENU1);
menu.EnableMenuItem(ID_MENU1_ONE, MF_GRAYED);
menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, AfxGetMainWnd());
}
i've also tried this:
void CMyApp::OnUpdateMenu1One(CCmdUI *pCmdUI)
{
CMenu * pMenu = pCmdUI->m_pMenu;
pMenu->EnableMenuItem(ID_MENU1_ONE, MF_GRAYED);
}
|
|
|
|
|
|
Every once in a while I hear this pop up that break statements should only be used in switch statements and continue is just bad.
IMHO, this is a question of style and thus I am not interested in if it is right or wrong. What I would like to know, how many people think that break/continue are bad and how many do not.
So? What do you guys think?
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I don't like using them except as you say break should be used in switch statements.
|
|
|
|
|
I use break all the time to exit simple loops (yes, I know this is a "violation of structured blah blah..." but I couldn't care less ). As for continue, I don't use it that much.
|
|
|
|
|
All generalizations are false.
break and continue have their place. Every programmer knows what they do, so using them won't cause others to scratch their heads in confusion. (Unlike something more esoteric, like say complex templates.) If the code is readable with those statements, then by all means use them.
--Mike--
If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|