|
Hi,
I would like to change the font and size of text in static text...
I have been able to change color. here are the command lines I use to do that.
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(0, 0, 255));//blue
But have not found a say to set the font or font size. Is it possible to set the font size and color for a static text control in MS CE C++ (v4.0)? If it is can anyone give me a hint of how to do this?
Thanks
|
|
|
|
|
I would like to change the font and size of text in static text...
I have been able to change color. here are the command lines I use to do that.
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(0, 0, 255));//blue
But have not found a say to set the font or font size. Is it possible to set the font size and color for a static text control in MS CE C++ (v4.0)? If it is can anyone give me a hint of how to do this?
Thanks
|
|
|
|
|
Create a CFont object and use SelectObject to select it into the DC. Save the return value. Once you've finished with your font, use SelectObject again to select the previous font back into the DC (this is important to ensure that your font object is disposed of properly).
This is assuming you're drawing your text with DrawText or TextOut or similar. If you want to affect the font of a static control, create a CFont object that has a lifetime at least as long as the control (for example, make it a member of the dialog class) and call SetFont on the control.
For more, read "Programming Windows, Fifth Edition" by Charles Petzold (dates from 1998, but still completely as relevant as ever) or "Programming Windows with MFC, Second Edition" by Jeff Prosise (equally old, equally still relevant).
|
|
|
|
|
Hi everyone plz help.
how do I integrate GPS coordinates to form?
|
|
|
|
|
Hi ,
I go through the verious section in the foroum. I think we should have one section for moblie gaming. Where everybody can put there ideas regarding to gaming.
|
|
|
|
|
Hi all.
I have developed a mobile web page in ASP.NET and it runs fine when running it on its own in VS.NET. I need to run it from a mobile device emulator to see how it looks,etc. I have tried this in the browser of the emulator :"http://localhost:2175/DemoGhostDigest/MobileArticle.aspx" but it says I am not connected. I specify the proxy name and port numbers, yet it still says no connection.
Am I missing something? Please assist.
Thanks.
|
|
|
|
|
Hi,
I guess you useing VS 2005.
You need to change the settings of the Ms ActiveSync.
Ms ActiveSync ->File -> Connection string
Use DMA instad of USB.
Try this,
Chandana
|
|
|
|
|
yes i am using 2005.
I am using Pocket PC 2003 2nd edition. I go to active sync menu->Tools->connect via DMA.
This is not working.
When i go to options and try 2 choose PC to sync to, the list is empty.
Thanks for your help.
|
|
|
|
|
When running in Visual Studio, you may well be using the standalone web server.
ActiveSync only proxies standard ports. You need to be running on port 80, and you probably therefore need to get your website running in IIS.
|
|
|
|
|
Hi.
Thanks. I got it sorted out and working.
|
|
|
|
|
i need help! i need coding s on how to send sms from pc to mobile phone using vb.net? pls help
saraswathy
|
|
|
|
|
Which .NET compact framework ( VS.NET ) version you are using?
If .NET CF 1.1 need to use Phone API. if you using .NET CF 2 with Windows mobile 5 use Microsoft.WindowsMobile.Telephony.Phone for sending SMS.
chandana
|
|
|
|
|
hi chandana, thank you very much for your reply. well i'm using VS.Net 2003.
|
|
|
|
|
Please see the following article on how to send SMS using .Net platforms.
[^]
BTW are you using a GSM modem or SMPP connection ?
Leon
|
|
|
|
|
Hi,
I have made one application in that I need my own cell number.
I got IMSI number but not my cell number.
How can I get my cell number.
I m using win 5.0 device.
My application is developed in eVC++ 4.0.
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
We found that it wasn't reliable - the SIM actually needed to have it programmed in, which many don't. I believe that when we got to the actual deployment, we ordered a very large batch of SIMs and requested that the corresponding phone number was programmed into the appropriate own-number location.
If the SIM does have it, call SimReadPhonebookEntry passing the SIM_PBSTORAGE_OWNNUMBERS location. At least, that's what we're doing.
It also might be possible to get it from lineGetAddressCaps , but I'm not sure about that.
|
|
|
|
|
Hi
I am not experienced at Windows CE.I want to learn how to display a picture in Jpeg format in Windows CE.At least which methods should I use in that process?Because OleLoadPicture or IPicture methods are not supported by Windows CE.
Thanks
|
|
|
|
|
Hello,
does anyone know how to unlock the phone via program code, so that the nagging windows dialog for entering the pin code does not apear?
Thanks a lot for help.
|
|
|
|
|
Hello.
I am writing for smartphone in vb.net using vs2003, compact framework 1.1, targeting windows mobile 2003 os.
I cannot get the app to respond to my own written events, regardless of where I place focus on load. Immediate task is to place checkboxes in a panel and use the number keys to check or uncheck. The checkboxes correspond to numbers on the pad. The up/down arrow keys would move focus to another panel of checkboxes and perform the same task.
Here is an example of the sub I'm trying to configure correctly:
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Mybase.KeyDown
'if the 1 key is pressed, check the first checkbox
If (e.KeyCode = System.Windows.Forms.Keys.D1) Then
If CheckBox1.CheckState = CheckState.Unchecked Then
CheckBox1.CheckState = CheckState.Checked
GoTo handled
End If
End If
'if the 2 key is pressed, check the second checkbox
If (e.KeyCode = System.Windows.Forms.Keys.D2) Then
If CheckBox2.CheckState = CheckState.Unchecked Then
CheckBox2.CheckState = CheckState.Checked
GoTo handled
End If
End If
'and so on
handled: e.Handled = False
End Sub
Advice is greatly appreciated.
Eric
|
|
|
|
|
|
|
thanks blue boy
Pavan Pareta
|
|
|
|
|
hope that link helped you
I Love SQL
|
|
|
|
|
how can i do connection Pockt pc emulator with active sysnc ?
i mean how pockt pc see my iis on pc(For making synchronize Merage sql server 2000)
123
|
|
|
|
|
We are using visual .net 2005 platform for develpoing our application in pocket pc 2003 (ce.net).
our problem is that when the application loads /moves from one form to another then it shows flickring effect(one to two seconds desktop of pocket pc is seen during navigation ).so how to remove or resolve it?????
so flickring is not there and their is fast flow from one form to another.
|
|
|
|