|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : Toolbar et Tooltip [ Archives / Au secours ] (trif)
Informations & options pour cette discussion
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é 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
|
Téléchargements
Logiciels à télécharger sur le même thème :
Comparez les prix Nouvelle version
|