Accueil > Forum > > > > Toolbar et Tooltip
Toolbar et Tooltip
lundi 31 mars 2003 à 13:47:21 |
Toolbar et Tooltip

trif
|
Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar Comment faire? HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) { HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers TBBUTTON tbb[5]; // Button struct for tool bar static HWND hWndTB; // Toolbar window handler HBITMAP hBtn; // bitmaps handle // begin ToolBar window creation hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ // create image List hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); // use transperacy ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); DeleteObject(hBtn); // Kill image object // create image List Hot Bar /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); // use transperacy ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); DeleteObject(hBtn); // Kill image object*/ // Attach the image lists to the window handler SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); // button 1 properties tbb[0].iBitmap = 0; // Array of picture to show tbb[0].idCommand = 0; tbb[0].fsState = TBSTATE_ENABLED; // button status tbb[0].fsStyle = TBSTYLE_BUTTON; // button style tbb[0].dwData = 0; tbb[0].iString = 0; tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier // button 2 properties tbb[1].iBitmap = 1; tbb[1].idCommand = 0; tbb[1].fsState = TBSTATE_ENABLED; tbb[1].fsStyle = TBSTYLE_BUTTON; tbb[1].dwData = 0; tbb[1].iString = 0; tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; // seperator properties tbb[2].iBitmap = 0; tbb[2].idCommand = 0; tbb[2].fsState = TBSTATE_ENABLED; tbb[2].fsStyle = TBSTYLE_SEP; tbb[2].dwData = 0; tbb[2].iString = 0; // button 4 properties tbb[3].iBitmap = 2; tbb[3].idCommand = 0; tbb[3].fsState = TBSTATE_ENABLED; tbb[3].fsStyle = TBSTYLE_BUTTON; tbb[3].dwData = 0; tbb[3].iString = 0; tbb[3].idCommand=ID_FICHIER_QUITTER; // button 5 properties tbb[4].iBitmap = 3; tbb[4].idCommand = 0; tbb[4].fsState = TBSTATE_ENABLED; tbb[4].fsStyle = TBSTYLE_BUTTON; tbb[4].dwData = 0; tbb[4].iString = 0; tbb[4].idCommand=ID__APROPOS; // Add the buttons SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons // Auto Disable buttons on startup /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ // Kill image object DeleteObject(hBtn); // Return tool bar window handler return hWndTB; }
|
|
lundi 31 mars 2003 à 14:45:27 |
Re : Toolbar et Tooltip

BruNews
|
J'ai fait un copier depuis un exemple que j'ai fait pour un autre. Te suffit adapter les idc_xxx. Tu recup WM_NOTIFY dans ta wndProc(), ici je ne verifie pas qui arrive car un seul emetteur possible, si tu as plusieurs controles pouvant emettre WM_NOTIFY alors regarde le hwndFrom.
case WM_NOTIFY: switch (((LPNMHDR) lParam)->code) { case TTN_NEEDTEXT: LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT) lParam; switch(lpttt->hdr.idFrom) { case IDC_TOOL_NEWCATEG: lpttt->lpszText = "Crée nouvelle catégorie"; break; case IDC_TOOL_DELCATEG: lpttt->lpszText = "Supprime catégorie courante"; break; case IDC_TOOL_NEWURL: lpttt->lpszText = "Crée nouveau lien"; break; case IDC_TOOL_DELURL: lpttt->lpszText = "Supprime lien sélectionné"; break; case IDC_TOOL_F1: lpttt->lpszText = "Aide du logiciel"; break; case IDC_TOOL_ABOUT: lpttt->lpszText = "A propos de..."; break; case IDC_TOOL_QUIT: lpttt->lpszText = "Fermeture logiciel"; break; } } return 0; BruNews, ciao...
------------------------------- Réponse au message : -------------------------------
> Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar > Comment faire? > HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) > { > HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers > TBBUTTON tbb[5]; // Button struct for tool bar > static HWND hWndTB; // Toolbar window handler > HBITMAP hBtn; // bitmaps handle > > // begin ToolBar window creation > hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, > hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); > > /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, > WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, > hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ > > // create image List > hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > // use transperacy > ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); > DeleteObject(hBtn); // Kill image object > > // create image List Hot Bar > /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > // use transperacy > ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); > DeleteObject(hBtn); // Kill image object*/ > > // Attach the image lists to the window handler > SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); > //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); > > // button 1 properties > tbb[0].iBitmap = 0; // Array of picture to show > tbb[0].idCommand = 0; > tbb[0].fsState = TBSTATE_ENABLED; // button status > tbb[0].fsStyle = TBSTYLE_BUTTON; // button style > tbb[0].dwData = 0; > tbb[0].iString = 0; > tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier > > // button 2 properties > tbb[1].iBitmap = 1; > tbb[1].idCommand = 0; > tbb[1].fsState = TBSTATE_ENABLED; > tbb[1].fsStyle = TBSTYLE_BUTTON; > tbb[1].dwData = 0; > tbb[1].iString = 0; > tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; > > // seperator properties > tbb[2].iBitmap = 0; > tbb[2].idCommand = 0; > tbb[2].fsState = TBSTATE_ENABLED; > tbb[2].fsStyle = TBSTYLE_SEP; > tbb[2].dwData = 0; > tbb[2].iString = 0; > > // button 4 properties > tbb[3].iBitmap = 2; > tbb[3].idCommand = 0; > tbb[3].fsState = TBSTATE_ENABLED; > tbb[3].fsStyle = TBSTYLE_BUTTON; > tbb[3].dwData = 0; > tbb[3].iString = 0; > tbb[3].idCommand=ID_FICHIER_QUITTER; > > // button 5 properties > tbb[4].iBitmap = 3; > tbb[4].idCommand = 0; > tbb[4].fsState = TBSTATE_ENABLED; > tbb[4].fsStyle = TBSTYLE_BUTTON; > tbb[4].dwData = 0; > tbb[4].iString = 0; > tbb[4].idCommand=ID__APROPOS; > > // Add the buttons > SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons > // Auto Disable buttons on startup > /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons > SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ > > // Kill image object > DeleteObject(hBtn); > > // Return tool bar window handler > return hWndTB; > } > >
|
|
lundi 31 mars 2003 à 14:52:42 |
Re : Toolbar et Tooltip

superpa
|
On a beau critiquer MFC, c'est quand même plus simple à utiliser pour les bulles d'aides et pour la barre d'outils...
A bientôt, P-A
------------------------------- Réponse au message : -------------------------------
> J'ai fait un copier depuis un exemple que j'ai fait pour un autre. Te suffit adapter les idc_xxx. Tu recup WM_NOTIFY dans ta wndProc(), ici je ne verifie pas qui arrive car un seul emetteur possible, si tu as plusieurs controles pouvant emettre WM_NOTIFY alors regarde le hwndFrom. > > case WM_NOTIFY: > switch (((LPNMHDR) lParam)->code) { > case TTN_NEEDTEXT: > LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT) lParam; > switch(lpttt->hdr.idFrom) { > case IDC_TOOL_NEWCATEG: > lpttt->lpszText = "Crée nouvelle catégorie"; break; > case IDC_TOOL_DELCATEG: > lpttt->lpszText = "Supprime catégorie courante"; break; > case IDC_TOOL_NEWURL: > lpttt->lpszText = "Crée nouveau lien"; break; > case IDC_TOOL_DELURL: > lpttt->lpszText = "Supprime lien sélectionné"; break; > case IDC_TOOL_F1: > lpttt->lpszText = "Aide du logiciel"; break; > case IDC_TOOL_ABOUT: > lpttt->lpszText = "A propos de..."; break; > case IDC_TOOL_QUIT: > lpttt->lpszText = "Fermeture logiciel"; break; > } > } > return 0; > BruNews, ciao... > > > ------------------------------- > Réponse au message : > ------------------------------- > > > Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar > > Comment faire? > > HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) > > { > > HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers > > TBBUTTON tbb[5]; // Button struct for tool bar > > static HWND hWndTB; // Toolbar window handler > > HBITMAP hBtn; // bitmaps handle > > > > // begin ToolBar window creation > > hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, > > hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); > > > > /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, > > WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, > > hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ > > > > // create image List > > hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > // use transperacy > > ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); > > DeleteObject(hBtn); // Kill image object > > > > // create image List Hot Bar > > /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > // use transperacy > > ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); > > DeleteObject(hBtn); // Kill image object*/ > > > > // Attach the image lists to the window handler > > SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); > > //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); > > > > // button 1 properties > > tbb[0].iBitmap = 0; // Array of picture to show > > tbb[0].idCommand = 0; > > tbb[0].fsState = TBSTATE_ENABLED; // button status > > tbb[0].fsStyle = TBSTYLE_BUTTON; // button style > > tbb[0].dwData = 0; > > tbb[0].iString = 0; > > tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier > > > > // button 2 properties > > tbb[1].iBitmap = 1; > > tbb[1].idCommand = 0; > > tbb[1].fsState = TBSTATE_ENABLED; > > tbb[1].fsStyle = TBSTYLE_BUTTON; > > tbb[1].dwData = 0; > > tbb[1].iString = 0; > > tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; > > > > // seperator properties > > tbb[2].iBitmap = 0; > > tbb[2].idCommand = 0; > > tbb[2].fsState = TBSTATE_ENABLED; > > tbb[2].fsStyle = TBSTYLE_SEP; > > tbb[2].dwData = 0; > > tbb[2].iString = 0; > > > > // button 4 properties > > tbb[3].iBitmap = 2; > > tbb[3].idCommand = 0; > > tbb[3].fsState = TBSTATE_ENABLED; > > tbb[3].fsStyle = TBSTYLE_BUTTON; > > tbb[3].dwData = 0; > > tbb[3].iString = 0; > > tbb[3].idCommand=ID_FICHIER_QUITTER; > > > > // button 5 properties > > tbb[4].iBitmap = 3; > > tbb[4].idCommand = 0; > > tbb[4].fsState = TBSTATE_ENABLED; > > tbb[4].fsStyle = TBSTYLE_BUTTON; > > tbb[4].dwData = 0; > > tbb[4].iString = 0; > > tbb[4].idCommand=ID__APROPOS; > > > > // Add the buttons > > SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons > > // Auto Disable buttons on startup > > /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons > > SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ > > > > // Kill image object > > DeleteObject(hBtn); > > > > // Return tool bar window handler > > return hWndTB; > > } > > > > >
|
|
lundi 31 mars 2003 à 15:12:36 |
Re : Toolbar et Tooltip

BruNews
|
oui sans mfc, SEMBLE + difficile, mais a la finale c'est faux. Quand on sait faire, alors tout est permis, ce qui n'est pas le cas de mfc ou il faudra appeler API native pour faire ce qui n'est pas fourni. Resultat mfc + API a apprendre. 1 seule me suffit. BruNews, ciao...
------------------------------- Réponse au message : -------------------------------
> On a beau critiquer MFC, c'est quand même plus simple à utiliser pour les bulles d'aides et pour la barre d'outils... > > A bientôt, > P-A > > > ------------------------------- > Réponse au message : > ------------------------------- > > > J'ai fait un copier depuis un exemple que j'ai fait pour un autre. Te suffit adapter les idc_xxx. Tu recup WM_NOTIFY dans ta wndProc(), ici je ne verifie pas qui arrive car un seul emetteur possible, si tu as plusieurs controles pouvant emettre WM_NOTIFY alors regarde le hwndFrom. > > > > case WM_NOTIFY: > > switch (((LPNMHDR) lParam)->code) { > > case TTN_NEEDTEXT: > > LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT) lParam; > > switch(lpttt->hdr.idFrom) { > > case IDC_TOOL_NEWCATEG: > > lpttt->lpszText = "Crée nouvelle catégorie"; break; > > case IDC_TOOL_DELCATEG: > > lpttt->lpszText = "Supprime catégorie courante"; break; > > case IDC_TOOL_NEWURL: > > lpttt->lpszText = "Crée nouveau lien"; break; > > case IDC_TOOL_DELURL: > > lpttt->lpszText = "Supprime lien sélectionné"; break; > > case IDC_TOOL_F1: > > lpttt->lpszText = "Aide du logiciel"; break; > > case IDC_TOOL_ABOUT: > > lpttt->lpszText = "A propos de..."; break; > > case IDC_TOOL_QUIT: > > lpttt->lpszText = "Fermeture logiciel"; break; > > } > > } > > return 0; > > BruNews, ciao... > > > > > > ------------------------------- > > Réponse au message : > > ------------------------------- > > > > > Bonjour, j'ai creer une toolbar de la facon suivante, et j'aimerai creer des tooltips pour les boutons de cette toolbar > > > Comment faire? > > > HWND CreateToolBar(HWND hWnd, HINSTANCE hInst) > > > { > > > HIMAGELIST hImglBtn;//, hImglBtnHot; // Toolbar images handlers > > > TBBUTTON tbb[5]; // Button struct for tool bar > > > static HWND hWndTB; // Toolbar window handler > > > HBITMAP hBtn; // bitmaps handle > > > > > > // begin ToolBar window creation > > > hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TBSTYLE_TOOLTIPS | TBSTYLE_AUTOSIZE, 0, 0, 0, 0, > > > hWnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL); > > > > > > /*hWndTB = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, > > > WS_CHILD | WS_VISIBLE , 0, 0, 0, 0, > > > hWnd, (HMENU)ID_TOOLBAR, hInst, NULL);*/ > > > > > > // create image List > > > hImglBtn = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK , 4, 1); > > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDR_TOOLBAR1), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > > // use transperacy > > > ImageList_AddMasked(hImglBtn, hBtn, RGB(255, 255, 255)); > > > DeleteObject(hBtn); // Kill image object > > > > > > // create image List Hot Bar > > > /*hImglBtnHot = ImageList_Create(24, 22, ILC_COLOR32 | ILC_MASK , 4, 1); > > > hBtn = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_TOOLBARHOT), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR); > > > // use transperacy > > > ImageList_AddMasked(hImglBtnHot, hBtn, RGB(255, 0, 255)); > > > DeleteObject(hBtn); // Kill image object*/ > > > > > > // Attach the image lists to the window handler > > > SendMessage(hWndTB, TB_SETIMAGELIST, (WPARAM)0, (WPARAM)hImglBtn); > > > //SendMessage(hWndTB, TB_SETHOTIMAGELIST, (WPARAM)0, (WPARAM)hImglBtnHot); > > > > > > // button 1 properties > > > tbb[0].iBitmap = 0; // Array of picture to show > > > tbb[0].idCommand = 0; > > > tbb[0].fsState = TBSTATE_ENABLED; // button status > > > tbb[0].fsStyle = TBSTYLE_BUTTON; // button style > > > tbb[0].dwData = 0; > > > tbb[0].iString = 0; > > > tbb[0].idCommand=ID_FICHIER_OUVRIR; // button identifier > > > > > > // button 2 properties > > > tbb[1].iBitmap = 1; > > > tbb[1].idCommand = 0; > > > tbb[1].fsState = TBSTATE_ENABLED; > > > tbb[1].fsStyle = TBSTYLE_BUTTON; > > > tbb[1].dwData = 0; > > > tbb[1].iString = 0; > > > tbb[1].idCommand=ID_FICHIER_ENREGISTRERSOUS; > > > > > > // seperator properties > > > tbb[2].iBitmap = 0; > > > tbb[2].idCommand = 0; > > > tbb[2].fsState = TBSTATE_ENABLED; > > > tbb[2].fsStyle = TBSTYLE_SEP; > > > tbb[2].dwData = 0; > > > tbb[2].iString = 0; > > > > > > // button 4 properties > > > tbb[3].iBitmap = 2; > > > tbb[3].idCommand = 0; > > > tbb[3].fsState = TBSTATE_ENABLED; > > > tbb[3].fsStyle = TBSTYLE_BUTTON; > > > tbb[3].dwData = 0; > > > tbb[3].iString = 0; > > > tbb[3].idCommand=ID_FICHIER_QUITTER; > > > > > > // button 5 properties > > > tbb[4].iBitmap = 3; > > > tbb[4].idCommand = 0; > > > tbb[4].fsState = TBSTATE_ENABLED; > > > tbb[4].fsStyle = TBSTYLE_BUTTON; > > > tbb[4].dwData = 0; > > > tbb[4].iString = 0; > > > tbb[4].idCommand=ID__APROPOS; > > > > > > // Add the buttons > > > SendMessage(hWndTB, TB_ADDBUTTONS, (WPARAM)5, (LPARAM)(LPTBBUTTON)&tbb); // add buttons > > > // Auto Disable buttons on startup > > > /*SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_PE_EDITOR, (LPARAM)FALSE); // Disable Buttons > > > SendMessage(hWndTB, TB_ENABLEBUTTON, IDC_SAVE_DISASM, (LPARAM)FALSE); // at first run*/ > > > > > > // Kill image object > > > DeleteObject(hBtn); > > > > > > // Return tool bar window handler > > > return hWndTB; > > > } > > > > > > > > >
|
|
lundi 17 janvier 2005 à 12:02:22 |
Re : Toolbar et Tooltip

Kikx
|
Merci ce bou de code m'aide bien Kikx

|
|
Cette discussion est classée dans : button, toolbar, tbb, hwndtb, idcommand
Répondre à ce message
Sujets en rapport avec ce message
Toolbar [ par GregPeck ]
Salut a tous,J'ai un problème qui commence a me gaver...Je suis en train de programmer une toolbar pour IE (sous Vc++ 6) et j'ai un soucis pour rajou
grayed toolbar button? [ par nahs ]
Bonjours,Comment faire pour griser un bouton du toolbar et pour griser un item du menu contextuelle c'est à dire du menu qui apparé lorsqu'on clic sur
Dessiner une icone sur un toolbar [ par gagah1 ]
Comment dessine une icône ou un bitmap sur un bouton de ToolBar ,à part les 15 boutons standard prédéfinis.
Affichages une toolbar sur la même "ligne" qu'une autre [ par tkrys ]
Salut! Petite question urgente...Je suis entrain de coder un prog sur lequelle la fenêtre principale dispose de deux toolbars (l'une a côté de l'autre
toolbar sans mfc [ par Arkko ]
slt ... est-ce quelquun connait un moyen de faire une toolbar sans les mfc (pas la "statique") celle quon peut deplacer et quand elle est pas colle su
toolbar pour un prog OpenGL [ par LocksCash ]
Voila, le truc en fait c que je prog une application de visualmisation 3D. J'utilise glut et gl pour la 3D et glui pour le fenetrage mais le problème
DRAWITEMSTRUCT owner draw button avec bmp ki change [ par youpiyoyo ]
j'aimerai k'un button owner draw change de bitmap kan la sourie pass dessus j'ai testé ca et également avec ODS_SELECTEDmais j'arrive po au résultat e
Ajouter une toolbar dans outlook express [ par marcjr ]
Je suis à la recherche d'un exemple ou d'information pour ajouter une toolbar dans outlook express en C++.Marcjr
Radio Button en PAS MFC [ par sebseb42 ]
salut,je voudrais pouvoir definir et recuperer l'etat de mes boutons radio dans une fenetre, le tout uniquement en API Win32 svpmerci d'avance pour vo
CComboboxEx dans une toolbar [ par drak_ ramore ]
Bonjour, je n'arrive pas à recupperer la valeur selectionnée dans la comboboxex. Elle a été construite de cette maniere :m_wndToolBar.SetButtonInfo(16
Livres en rapport
|
Derniers Blogs
SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE !MISHRA READER : UN LECTEUR RSS TRèS ZUNE STYLE EN OPEN SOURCE ! par Vko
Hier durant une session dédiée aux Techdays 2012, j'ai eu le plaisir d'annoncer la sortie de la Béta 2 de Mishra Reader. C'est quoi ? Pour les utilisateurs, c'est une vraie expérience de lecture de flux RSS sur Windows. Rien à voir avec les produit...
Cliquez pour lire la suite de l'article par Vko
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|