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

  FORUM HardWare.fr
  Programmation
  C++

  [win32] Scrollbar

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[win32] Scrollbar

n°1132691
dd92
Posté le 27-06-2005 à 18:17:23  profilanswer
 

Bonjour,
Je cherche comment initialiser ou modifier la taille de "l'ascenseur" dans un barre de défilement (scroll bar) en WIN32 ...
Si quelqu'un a une idée
Merci d'avance

mood
Publicité
Posté le 27-06-2005 à 18:17:23  profilanswer
 

n°1132716
slash33
Posté le 27-06-2005 à 18:42:26  profilanswer
 

SetScrollSizes()
 
Edit: non ça c'est MFC. En WIN 32 faut utiliser SetScrollInfo() ou SetScrollRange(). Aide toi et la MSDN t'aidera.


Message édité par slash33 le 27-06-2005 à 18:58:27
n°1132740
dd92
Posté le 27-06-2005 à 19:03:44  profilanswer
 

En MFC Oui, Pas en Win32 pur ...

n°1132752
slash33
Posté le 27-06-2005 à 19:20:29  profilanswer
 

En fait c'est CScrollView::SetScrollSizes()
 
Sinon
 
CWnd::SetScrollInfo
 
BOOL SetScrollInfo(
   int nBar,
   LPSCROLLINFO lpScrollInfo,
   BOOL bRedraw = TRUE  
);
 
Parameters
 
nBar
    Specifies whether the scroll bar is a control or part of a window's nonclient area. If it is part of the nonclient area, nBar also indicates whether the scroll bar is positioned horizontally, vertically, or both. It must be one of the following:
 
        * SB_CTL   Contains the parameters for a scroll bar control. The m_hWnd data member must be the handle of the scroll bar control.
        * SB_HORZ   Specifies that the window is a horizontal scroll bar.
        * SB_VERT   Specifies that the window is a vertical scroll bar.
 
lpScrollInfo
    A pointer to a SCROLLINFO structure. See the Platform SDK for more information about this structure.
bRedraw
    Specifies whether the scroll bar should be redrawn to reflect the new position. If bRedraw is TRUE, the scroll bar is redrawn. If it is FALSE, it is not redrawn. The scroll bar is redrawn by default.
 
Return Value
 
If successful, the return is TRUE. Otherwise, it is FALSE.

n°1132757
dd92
Posté le 27-06-2005 à 19:35:26  profilanswer
 

Oui, j'ai bien trouvé cette fonction entre temps, mais je suis toujours en train de ma battre avec !!!
ça ne fais pas grand chose ...

n°1133197
slash33
Posté le 28-06-2005 à 09:53:23  profilanswer
 

Alors là tu m'étonnes beaucoup, je l'ai déja utilisée.
Bon t'aurais pas un code à soumettre ou bien explique ce que tu veux faire...


Message édité par slash33 le 28-06-2005 à 09:54:28

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

  [win32] Scrollbar

 

Sujets relatifs
[WIN32] Ouvrir du mp3 VBR avec les fonctions acm* et la lib winmmPlateforme Win32 et très forte charge : SQL Server ou Oracle
la scrollbar n apparait pasWin32_scheduler : ajouter une tâche
Pb d'affichage de ScrollBar et d'un JButon[Api windows (win32) / C] Edition d'un subitem dans une listview
Win32 - parcourir la pile utilisateur d'un threaduns scrollbar dans une fenetre+impression des JTextArea
[windows win32] notification d'insertion et éjection de clés usb 
Plus de sujets relatifs à : [win32] Scrollbar


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