|
Is your problem that when you press the down-pointing arrow, only a small line appears at the bottom of the control and it looks like no string has been added to the control?
|
|
|
|
|
That is exactly what it does. I was reading around CP and saw things on setting the height of the listbox that gets dropped down .. am I on the right track? If so, why would it work without doing that on my development system but not on the clients systems?
Travis D. Mathison --- --- After three two days without programming, life becomes meaningless ...
|
|
|
|
|
may be you should resize the combo box control. from the dialog editor click on the down arrow of the combo box and then resize the drop-down box. and build your project
|
|
|
|
|
Yeah, I realized this a little bit ago .. I don't know what the heck I was thinking. This issue was a no-brainer -- been one of those days.. thanks anyways :P
Travis D. Mathison --- --- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Use MoveWindow and the height and width parameter defines the dropdown area.
|
|
|
|
|
How can I place a single symbolic letter in a StaticText-Field???
for example:
Angle (show Symbol: APLPHA) : 90°
Angle (show Symbol: BETA): 30°
|
|
|
|
|
Your best way of doing this is to create a member variable CFont object and create a font and set it for that static text control. You can then set the right character index for the reqquired symbol.
Take a look at the character map table supplied in windows and find a common font that supports the character(s) you need. Then create that font in code and apply it to the control.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
That's not the problem,
I try to explain:
I would have a "normal Text" with a single symbolic Character! I need this, because I would explain a mathematical form in a dialog!
|
|
|
|
|
- ANSI has primitive support for greek letters, but you can use some.
- Use Unicode.
- Create a custom font. (safest bet)
- Bark like a dog!
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"It was a blind man who taught me how to see." - Aerosmith
|
|
|
|
|
|
A ruler?
GetTextExtentPoint32() is another way.
/Magnus
|
|
|
|
|
Thanks, i think i'll go with the API how do you set a Device Context's font?
|
|
|
|
|
u can use SelectObject()
/Magnus
|
|
|
|
|
Can you give me an example? I'm not good at that stuff
Thanks
|
|
|
|
|
something like this:
HFONT hNewFont = ::CreateFont(...);
HFONT hOld = ::SelectObject(hDC, hNewFont);
...
::SelectObject(hDC, hOld);
DeleteObject(hNewFont);
-c
Cheap Oil. It's worth it!
|
|
|
|
|
Hi everyone,
I have an error like this:
Linking...
Creating library Debug/PrsPunct32.lib and object Debug/PrsPunct32.exp
Debug/PrsPunct32.exe : warning LNK4086: entrypoint "_mainCRTStartup" is not __stdcall with 12 bytes of arguments; image may not run
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/PrsPunct32.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I am using VC++ 6.0 What's causing this? and how can I solve this?
Thanks/Regards
Sidney
|
|
|
|
|
try compiling with /Gz option
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Hi Mich,
I still get the same error even if I add the /Gz option. Any Idea
Thanks/Regards
Sidney
|
|
|
|
|
Looks like you are building a DLL. make sure you have all your project settings correct. use the app wizard.
|
|
|
|
|
Having established a serial comms connection to COM 1 to access a modem it is possible to send AT command strings for the modem to interpret. In this way I can instruct a modem to dial a particular number and connect to a receiving modem and application.
Once the connection has been made the modem goes into online mode and so any data then sent to the COM port is then sent over the connection to the receiving modem and application. If I want to end the call from the initiating end, presumably I can just call CloseHandle on the handle created with the initial call to CreateFile and that will end the call.
However, from the receiving end, I would need to return the modem to command mode to issue the ATH command to terminate the call. Orinarily you would issue the escape sequence "+++" to get the modem into command mode. However, if I send "+++" to an open serial port it will just send that data over the connection
How can I get a modem back into command mode? Or am I going about it the wrong way?
I have already tried TAPI, unsuccessfully (see earlier posts), hence my attempt to use serial port comms.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
The standard sequence is <wait at least 1 sec>+++<wait at least 1 sec>. Maybe that's your problem.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Sorry if I wasn't clear enough in my original post. If you use CreateFile to connect to the COM port and send the string "ATD Phone number" to the modem, anything you send after that, including "+++" gets sent as data. It does not recognise "+++" as the escape sequence.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
Sorry if I wasn't clear enough in my original post.
Maybe it's me who hasn't been clear in the answer What I meant is that you have to include two surrounding safeguard periods of at least 1 second in which you don't send any data to the modem for it to recognize the +++ as a escape sequence. I've successfully used this thing in the past, I'll send you a code snippet tomorrow when I get to work. Another possibility is that you need some previous AT command to instruct the modem to understand the +++ bit, but I don't think so.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I'm curious as to what the answer to this question is too.
I don't know if this will help but the MTTTY sample in MSDN makes a call to EscapeCommFunction(portNo, CLRDTR) which lowers the DTR signal. Then it is followed by restoring comm timeouts via SetCommTimeouts(), calls PurgeComm() and finally closes the handle to the port. I don't know if you're still connected and then are allowed to send the "+++" ATH at the point before closing the handle. The MTTTY sample should work with a modem but I did not see a "dial" command but it should pass on the AT commands too.
HTH
|
|
|
|
|
Thanks for the tip. I'll look into it at work tomorrow.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|