Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1765 connectés 

  FORUM HardWare.fr
  Programmation

  [VB6] Pb avec Large Font

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[VB6] Pb avec Large Font

n°43079
BlackSunSo​ft
Keyboard error - Press F1
Posté le 27-06-2001 à 12:16:21  profilanswer
 

salut,
 
Comment peut on eviter que les Grandes Polices (reglages dans les propriétés d'affichages, par defaut 96 dpi) ne soit utilisé dans mon soft qui utilises des skins car cela decale tout par la même occasion a cause des grande polices...
 
Merci


---------------
PowerDivX NextGen 3.12 sur: http://www.powerdivx.com
mood
Publicité
Posté le 27-06-2001 à 12:16:21  profilanswer
 

n°43121
HelloWorld
Salut tout le monde!
Posté le 27-06-2001 à 14:11:03  profilanswer
 

essaie de gerer quand meme ... car c'est encore + chiant pour l'utilisateur qui doit rebooter le PC a chaque fois qu'il veut utiliser ton soft.
 
sinon pour tester:
 
dans un module:
 
Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Declare Function GetDesktopWindow Lib "user32" () As Long
Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long
Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Public Const LOGPIXELSX = 88
 
 
Public Function TestPetitePolice() As Boolean
    Dim hDCBureau As Long
    Dim hWndBureau As Long
    Dim ResH As Long
    Dim hWndEcran As Long
 
    hWndBureau = GetDesktopWindow()
    hDCBureau = GetDC(hWndEcran)
 
'Obtenir la résolution horizontale en pixels logique
    ResH = GetDeviceCaps(hDCBureau, LOGPIXELSX)
'Effacer le hDC du Bureau
    Call ReleaseDC(hWndBureau, hDCBureau)
 
'Si le système utilise une petite police, alors ResH = 96
    TestPetitePolice = ResH = 96
End Function
 
c'est fonction retourne TRUE si la police est petite ...


---------------
FAQ fclc++ - FAQ C++ - C++ FAQ Lite
n°43151
BlackSunSo​ft
Keyboard error - Press F1
Posté le 27-06-2001 à 15:02:40  profilanswer
 

Oui justement je veux gerer ça...
 
Ok merci, j'ai juste a reduire la taille des polices apres non ?


---------------
PowerDivX NextGen 3.12 sur: http://www.powerdivx.com
n°43367
BlackSunSo​ft
Keyboard error - Press F1
Posté le 28-06-2001 à 13:59:58  profilanswer
 

Up


---------------
PowerDivX NextGen 3.12 sur: http://www.powerdivx.com
n°44175
BlackSunSo​ft
Keyboard error - Press F1
Posté le 03-07-2001 à 09:41:01  profilanswer
 

J'ai essayé de reduire la taille des polices, mais ça ne marche pas


---------------
PowerDivX NextGen 3.12 sur: http://www.powerdivx.com

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [VB6] Pb avec Large Font

 

Sujets relatifs
[VB6] Obtenir les sous repertoires d'un repertoireOU TROUVER DES DOC. DES TUTORIALS POUR VC++ ET VB6
[VB6] Probleme pour me connecter à une DB Accesspb de listing de repertoire sous VB6
[VB6] Tout bête bis : Accéder aux champs d'une table[VB6] Tout bête : Comment charger une feuille Excel ?
pb de listing de repertoire sous VB6[VB6] PB de packet avec winsock
[VB6] Datagrid ! HELPPPPPPPPPPPPP...[VB6] Pourquoi mon programme de téléchargement fonctionne mal ?
Plus de sujets relatifs à : [VB6] Pb avec Large Font


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR