home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1324 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.9 KB

  1. Path: sparky!uunet!mcsun!corton!sophia!aldebaran.inria.fr!baillett
  2. From: baillett@aldebaran.inria.fr (Jean-Francois Baillette)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Need serious help with BC++3.0, WIN3.1 & OWL
  5. Message-ID: <26960@sophia.inria.fr>
  6. Date: 14 Aug 92 10:38:55 GMT
  7. Sender: news@sophia.inria.fr
  8. Reply-To: ${USER}@sophia.inria.fr
  9. Organization: Inria Sofia Antipolis
  10. Lines: 55
  11.  
  12.  
  13.  
  14. Hello happy(:-)) Windows programmers !
  15.  
  16.  
  17. I really need HELP for :
  18.  
  19. (1) I build a Windows application with Borland C++ 3.0 and ObjectWindows
  20.     Library in wich I want to activate buttons when I press function keys.
  21.  
  22.     I tried to load an accelerators table where each virtual function (one by
  23.     function key) called the virtual function of the right button (e.g. virtual
  24.     void CMF1 = [CM_FIRST+ID_BUTTON1] call virtual void HandleBt1Msg =
  25.     [ID_FIRST+ID_BUTTON1]).
  26.     Each accelerator has the same ID as the button it may activate.
  27.  
  28.     But this works one time and that's all (i.e. I press one function key, it
  29.     activates the right processing and after, any function key can be used !).
  30.  
  31. (2) How can I say to windows that a button is clicked ? I tried to send
  32.     message BM_SETSTATE but nothing happen.
  33.  
  34. (3) I have dialog boxes with controls (list box, group box and each group box
  35.     contains two radio buttons). When I exec them (with ExecDialog(new
  36.     TMyDialog(this,ID_MYDIALOG))), I want to change the items of the list box
  37.     when I toggle radio buttons. And sometimes it works fine, sometimes it
  38.     never works, sometimes it works when it wants !
  39.  
  40.     I intercept the group box notification message, and I switch on the state
  41.     of the radio buttons of this group box. May I use radio button
  42.     notification messages instead of the group box ones ?
  43.  
  44.  
  45. I know that I ask a lot of things here but I spent time and time and I didn't
  46. find the answers.
  47.  
  48. I'll be pleased to receive examples, I don't have a lot of time more to finish
  49. my application ... and Windows is only a little part of it !
  50.  
  51. Thanks by advance (and please answer by email, I'll send the answers I will
  52. receive to anyone who'll ask it to me).
  53.  
  54.  
  55. ===============\---------------------------------------------/=================
  56. INRIA - 2004 Rte\               Lionel AUBERTIN             / ESSI - 157 Rue
  57. des Lucioles     \                                         / A. Einstein
  58. BP 93 - 06902     \  aubertin@pax.inria.fr   (33)93657650 / BP 145 -06109
  59. Sophia Antipolis   \ aubertin@essi.cerisi.fr (33)93954428/ Sophia Antipolis
  60. ====================\-----------------------------------/======================
  61.           " Pourquoi faire simple quand on peut faire complique ? "
  62. ===============================================================================
  63.                        \____________     ____________/
  64.                                     \   /
  65.                                      \ /
  66.                                       ^
  67.