[gme-users] How to plot graph with BON2 interpreter?

Kevin Smyth ksmyth at isis.vanderbilt.edu
Thu Sep 9 16:20:09 CDT 2010


Here's example code to initialize an MFC GUI:

 

unsigned int WM_MYQUIT = RegisterWindowMessage("WM_MYQUIT"); // or WM_USER +
X

...

CPropertySheet* m_pWizard;

m_pWizard = new CPropertySheet("Wizard", AfxGetMainWnd());

...

m_pWizard->Create(AfxGetMainWnd(),DWORD(-1),WS_EX_TOPMOST);

 

MSG msg;

while (GetMessage(&msg, NULL, 0, 0)) 

{

      if(msg.message == WM_MYQUIT)

      {

            break;

      }

      TranslateMessage(&msg);

      DispatchMessage(&msg);

}

 

When your GUI is exited (e.g. OnCancel() or OnOK()), use this to exit the
GetMessage loop:

::PostMessage(NULL, WM_MYQUIT,-1,0);

 

Kevin

 

 

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Rui Jia
Sent: Wednesday, September 01, 2010 2:46 PM
To: gme-users
Cc: Abhishek Dubey; Abdelwahed Sherif
Subject: [gme-users] How to plot graph with BON2 interpreter?

 

Dear GME users,

 

Hi. I am a new graduate student working with GME. Does anyone know how to
plot the data in BON2 interpreter like the "plot" function in MATLAB?

 

Now I have the knowledge about how to create a single MFC application to
make such plot dialogs or forms. However, I am confused about the MFC
structure of the BON2 interpreter.

 

Could you please give me some instructions on initializing a GUI in BON2
interpreter?

 

Thank you!

 

Best,

 

Rui  

---------------------------------
Rui Jia, Ph.D Candidate
Research Assistant
Department of Electrical and Computer Engineering
Mississippi State University
 
Email: rj330 at ece.msstate.edu
MSN: jiatistuta at hotmail.com
Phone: +1-662-617-5995

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20100909/19010b57/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5113 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20100909/19010b57/attachment.bin 


More information about the gme-users mailing list