Click here to Skip to main content
15,926,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWhile loops Pin
Anonymous11-Nov-02 18:22
Anonymous11-Nov-02 18:22 
GeneralRe: While loops Pin
Christian Graus11-Nov-02 18:25
protectorChristian Graus11-Nov-02 18:25 
GeneralRe: While loops Pin
Brian Delahunty11-Nov-02 22:47
Brian Delahunty11-Nov-02 22:47 
Generalreading and writing raw data to an access database from c++ Pin
Gilfrog11-Nov-02 18:11
Gilfrog11-Nov-02 18:11 
GeneralRe: reading and writing raw data to an access database from c++ Pin
Prem Kumar11-Nov-02 19:47
Prem Kumar11-Nov-02 19:47 
GeneralCustomized Windows Pin
Shamoon11-Nov-02 17:55
Shamoon11-Nov-02 17:55 
GeneralHelp with ComboBox Pin
VanHlebar11-Nov-02 17:54
VanHlebar11-Nov-02 17:54 
QuestionMoving Between Classes? Pin
Jonah Bishop11-Nov-02 17:41
Jonah Bishop11-Nov-02 17:41 
I am trying to implement window snapping in an SDI application. The code I'm using (http://www4.ncsu.edu/~jgbishop/codetips/snapwindow.html) works fine when I place it in the CMainFrame class. However, I allow the user to set a custom snap distance. This is done via the options dialog, which is opened from my CFormView class.

My main problem is that I cannot seem to access this needed CFormView variable from my CMainFrame class. If I could do that, things would work like I want them to. Anyone know how to do that?

If that is not possible, is there some way to trap messages sent to the CMainFrame in my CFormView class? Perhaps some sort of message routing mechanism that I could use? I need to trap the WM_MOVING and WM_ENTERSIZEMOVE events for my SDI application window, but it seems that I can only do that from the CMainFrame class (not from CFormView).

If anyone has a solution to either of these problems, I would be very grateful! Big Grin | :-D

Jonah Bishop
Visit JGB Productions
http://www4.ncsu.edu/~jgbishop
AnswerRe: Moving Between Classes? Pin
Michael Dunn11-Nov-02 19:17
sitebuilderMichael Dunn11-Nov-02 19:17 
GeneralRe: Moving Between Classes? Pin
Jonah Bishop12-Nov-02 10:55
Jonah Bishop12-Nov-02 10:55 
Generalmultithread and function access Pin
zecodela11-Nov-02 17:35
zecodela11-Nov-02 17:35 
GeneralRe: multithread and function access Pin
Joao Vaz11-Nov-02 18:13
Joao Vaz11-Nov-02 18:13 
GeneralRe: multithread and function access Pin
zecodela11-Nov-02 19:28
zecodela11-Nov-02 19:28 
GeneralRe: multithread and function access Pin
Joao Vaz11-Nov-02 22:12
Joao Vaz11-Nov-02 22:12 
GeneralRe: multithread and function access Pin
Anonymous12-Nov-02 0:41
Anonymous12-Nov-02 0:41 
GeneralRe: multithread and function access Pin
Joao Vaz12-Nov-02 1:58
Joao Vaz12-Nov-02 1:58 
Questionmy ado program don't work on another pc? Pin
sages11-Nov-02 16:03
sages11-Nov-02 16:03 
AnswerRe: my ado program don't work on another pc? Pin
Christian Graus11-Nov-02 17:17
protectorChristian Graus11-Nov-02 17:17 
GeneralThanks,i've resolved th problem. Pin
sages11-Nov-02 20:11
sages11-Nov-02 20:11 
GeneralWizard goes Next in Windows 98 Pin
Swinefeaster11-Nov-02 14:13
Swinefeaster11-Nov-02 14:13 
Generaldisable individual rows of a listctrl Pin
fordge11-Nov-02 13:55
fordge11-Nov-02 13:55 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 14:08
Swinefeaster11-Nov-02 14:08 
GeneralRe: disable individual rows of a listctrl Pin
fordge11-Nov-02 20:37
fordge11-Nov-02 20:37 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 20:40
Swinefeaster11-Nov-02 20:40 
GeneralRe: disable individual rows of a listctrl Pin
Michael Dunn11-Nov-02 16:55
sitebuilderMichael Dunn11-Nov-02 16:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.