C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

comment Creer une fenêtre non-redimensionable ?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
Nicolas ROBERT
Guest





PostPosted: Thu May 13, 2004 9:54 am    Post subject: comment Creer une fenêtre non-redimensionable ? Reply with quote



bonjour,

Je débute en C++ et je développe une application sous visualC++ V6.

Je souhaite créer une fenêtre qui ne peut se redimensionner

Inst = HInst;
WNDCLASSEX WLibClass;
WLibClass.cbSize=sizeof(WNDCLASSEX);
WLibClass.cbClsExtra=0;
WLibClass.cbWndExtra=0;
WLibClass.lpszClassName="WLibWindow";
WLibClass.hbrBackground=(HBRUSH)COLOR_WINDOW;
WLibClass.hCursor=LoadCursor(0,IDC_ARROW);
WLibClass.hIcon=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hIconSm=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hInstance=Inst;
WLibClass.lpfnWndProc=MessagesProc;
WLibClass.lpszMenuName=(PCSTR)IDR_MENU1;
WLibClass.style=CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;

RegisterClassEx(&WLibClass);

hwnd=CreateWindow("WLibWindow",title,WS_OVERLAPPEDWINDOW,x,y,width,height,Pa
rent->hwnd,0,HInst,0);

Je pense qu'il me faut ajouter un paramètre dans WlibClass.style mais je ne
l'ai pas trouvé.
Quelqu'un a-t-il une idée ?
d'avance merci


Back to top
Le Géant Vert
Guest





PostPosted: Thu May 13, 2004 12:54 pm    Post subject: Re: comment Creer une fenêtre non-redimensionable ? Reply with quote



essaye qqch come ça :

DWORD dwWindowStyle = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU &
~WS_THICKFRAME | WS_MINIMIZEBOX & ~WS_MAXIMIZEBOX | WS_VISIBLE;
hwnd = CreateWindow("WLibWindow", title, dwWindowStyle, x, y, width,
height, Parent->hwnd, 0, HInst, 0);

cela dit la question aura plus ça place sur un NG win32 ;)

Nicolas ROBERT wrote:

Quote:
bonjour,

Je débute en C++ et je développe une application sous visualC++ V6.

Je souhaite créer une fenêtre qui ne peut se redimensionner

Inst = HInst;
WNDCLASSEX WLibClass;
WLibClass.cbSize=sizeof(WNDCLASSEX);
WLibClass.cbClsExtra=0;
WLibClass.cbWndExtra=0;
WLibClass.lpszClassName="WLibWindow";
WLibClass.hbrBackground=(HBRUSH)COLOR_WINDOW;
WLibClass.hCursor=LoadCursor(0,IDC_ARROW);
WLibClass.hIcon=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hIconSm=LoadIcon(Inst,MAKEINTRESOURCE(Icone));
WLibClass.hInstance=Inst;
WLibClass.lpfnWndProc=MessagesProc;
WLibClass.lpszMenuName=(PCSTR)IDR_MENU1;
WLibClass.style=CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;

RegisterClassEx(&WLibClass);

hwnd=CreateWindow("WLibWindow",title,WS_OVERLAPPEDWINDOW,x,y,width,height,Pa
rent->hwnd,0,HInst,0);

Je pense qu'il me faut ajouter un paramètre dans WlibClass.style mais je ne
l'ai pas trouvé.
Quelqu'un a-t-il une idée ?
d'avance merci





Back to top
Fabien LE LEZ
Guest





PostPosted: Fri May 14, 2004 1:58 am    Post subject: Re: comment Creer une fenêtre non-redimensionable ? Reply with quote



HS.
fr.comp.os.ms-windows.programmation, FAQ, toussa...

--
Wink
FLL, Epagneul Breton
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.