Thanks, just what I was looking for.
netx2003
Posts
-
System's Color Palette -
Going Crazy (How to Install a Font)Hello, I am writing an small setup program and I need to install some fonts. I had look in MSDN and in many other places, but I can’t find the solution. AddFontResource works but only on the current session after a reboot the font is gone. I also tried CreateScalableFontResource with AddFontResource but I can’t get it to work. I copy the ttf font file to the windows fonts folder and it does not work. Here is a sample function:
//sFontFileName = Is the name of the font file Ex: arial.ttf will be arial //sFontLocation = Is the current location of the ttf file Ex: D:\setup\fonts\ //GetWindowsFolder() = return the windows folder Ex: c:\windows\ void InstallFont(CString sFontFileName, CString sFontLocation){ CString sFontResource(GetWindowsFolder() + sFontFileName + ".fot"); CString sWinFonts(GetWindowsFolder() + "Fonts\\" + sFontFileName + ".ttf"); ::CopyFile(sFontLocation + sFontFileName + ".ttf", sWinFonts, TRUE); CreateScalableFontResource(0, sFontResource, sWinFonts, NULL); AddFontResource( sFontFileName + ".fot" ); }
If you have any ideas please help. An example will be perfect. Thanks. -
System's Color PaletteHello, I am looking for a way to detect the system's color palette( On XP color quality). This is setup on the Display Properties at the settings tab. I need to know if the computer is running using "16 Color", "255 Color", "16 Bit" and so on. Any ideas?
-
Navigation BarsI am new to website design and I have a question. I see the websites like this one (codeproject.com) that they keep the top, left and bottom navigation bars the same from one page to the other. Almost all of this sites use ASP so I can not see the code because it is executed and I only see the final output. The way that I am doing that at this time is using frames or copying the code for the navigation bars in each page. Can any one tell me which is the best way (not the easiest way, but the best:omg:) to do this? SSI / ASP ???:confused:
-
Create/Remove Users on Win2000 ServerIs there any way that I using code can add and remove users on Windows 2000 Server.
-
HP Mobile Printing SDK for PocketPCHello, I am using the HP Mobile Printing SDK for PocketPC to print from an application that I am developing. The PrintJob function works perfect, but I need to do my owe rendering and I am trying to use the function CreatePrinterContext () . That function return a Window HDC that I was trying to use like in a regular MFC App attaching it to a CDC where I can call the functions StartDoc, StartPage and so on, but those function are not available on the CE version of MFC since all the printing support was remove from it. Now I have no idea of how to use the Window HDC to print and I can not find any example on the web and HP will charge me $125 for support. This is a quote from their help file: CreatePrinterContext creates a device (printer) context describing the target properties so that an application can render into it. Currently, only direct-based printers are supported. Service-based printers will not be available to the user when the application uses this method of printing. On PocketPC, MPRINT_DC is a Windows HDC and can be used as one. If you have any idea of how to do it please let me know.
-
Grouping on Taskbar?Yes
-
Grouping on Taskbar?Payroll Reports
-
Hide Frame from task barHello, I have an application that starts with a CListView on the list view the user can click on items and then another frame will show but this time with a CFormView. The user can have more than one CFormView open at any time. Since the user can have more than one CFormView open I don't want them to show on the task bar. Any help on show to do this. I found an example but it disables the main view and I need that view active.
-
Grouping on Taskbar?Hello, I have an application that show multiples forms. They show ok on the task bar with but when there is not more space on the taskbar WinXP group them together and them the name that shows on the taskbar is CMYApp instead of the application title. I don’t have a problem with the grouping but I will like to show the title of my application not CMyApp. Any ideas?
-
ESC Key on a CFormViewThank for the help. I had a problem in my code:
MSDN Library: PRB: Modal Dialog Box Prevents Calls to PreTranslateMessage ID: Q126874
-
ESC Key on a CFormViewPreTranslateMessage is never called on the CFormView
-
ESC Key on a CFormViewI have a CFormView and I need to capture the ESC key. The control the has the focus always receive the OnChar but the form never does. I don't want to use an Accelerator nor any code on the controls. Any Ideas?
-
leaked GDI objects!How do I check for leaked GDI objects?
-
Drawing ( CView )Hello, I have a VC++6(MFC) Application which is giving me a problem in Windows98/ME, but not on XP or 2000. The App has a CView that I use to draw on the screen OnDraw(CDC* pDC). I read information for an access database using ado and from that information I draw a chart on the screen. It runs five on XP/2000 but on 98 after a while or many call to the OnDraw functions it freezes and all the bitmaps that I am drawing on the screen don’t show anymore when I try to open a dlg it show a message box saying “A required resource was”. Any help will be appreciated. Thank You, Alfred