Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSetWindowLong ( GCL_HBRBACKGROUND ) Pin
Mike Doner8-May-02 11:23
Mike Doner8-May-02 11:23 
GeneralRe: SetWindowLong ( GCL_HBRBACKGROUND ) Pin
Jeremy Falcon8-May-02 11:32
professionalJeremy Falcon8-May-02 11:32 
GeneralListbox, avoid autoscroll Pin
8-May-02 10:26
suss8-May-02 10:26 
GeneralRe: Listbox, avoid autoscroll Pin
Joaquín M López Muñoz8-May-02 10:40
Joaquín M López Muñoz8-May-02 10:40 
GeneralRe: Listbox, avoid autoscroll Pin
10-May-02 19:00
suss10-May-02 19:00 
GeneralRe: Listbox, avoid autoscroll Pin
11-May-02 7:44
suss11-May-02 7:44 
GeneralRe: Listbox, avoid autoscroll Pin
Jack Handy8-May-02 10:41
Jack Handy8-May-02 10:41 
Generalrefrence function ... Pin
Hadi Rezaee8-May-02 9:58
Hadi Rezaee8-May-02 9:58 
Hi there ...
I wrote a structure like this:

struct MyObject
{
CDC dc;
CBitmap bmp;
short x, y;
};

In one of my functions i want to make a refrence parameter ...
I mean the function can chenge the value which got from parameter.

It is my function:

void CTileDlg::SwapTiles(MyObject &myObj)
{

int x, y;
short col, row;

x = myObj->nX;
y = myObj->nY;
col = myObj->nCol;
row = myObj->nRow;

myObj->nX = objNULL->nX;
myObj->nY = objNULL->nY;
myObj->nCol = objNULL->nCol;
myObj->nRow = objNULL->nRow;

objNULL->nX = x;
objNULL->nY = y;
objNULL->nCol = col;
objNULL->nRow = row;

}

I have to pass MyObject pointer object to that.
For example:

MyObject *mo;
SwapTiles(mp);

Could you tell me how can i make a right refrence function ?

My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralRe: refrence function ... Pin
Nish Nishant8-May-02 10:03
sitebuilderNish Nishant8-May-02 10:03 
GeneralRe: refrence function ... Pin
Joaquín M López Muñoz8-May-02 10:05
Joaquín M López Muñoz8-May-02 10:05 
Generalusing accelerator in a dialog based project Pin
lucy8-May-02 9:15
lucy8-May-02 9:15 
GeneralRe: using accelerator in a dialog based project Pin
Joaquín M López Muñoz8-May-02 9:25
Joaquín M López Muñoz8-May-02 9:25 
GeneralRe: using accelerator in a dialog based project Pin
lucy8-May-02 9:40
lucy8-May-02 9:40 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 9:45
sitebuilderNish Nishant8-May-02 9:45 
GeneralRe: using accelerator in a dialog based project Pin
Joaquín M López Muñoz8-May-02 10:07
Joaquín M López Muñoz8-May-02 10:07 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 10:13
sitebuilderNish Nishant8-May-02 10:13 
GeneralRe: using accelerator in a dialog based project Pin
Tim Smith8-May-02 10:35
Tim Smith8-May-02 10:35 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 10:40
sitebuilderNish Nishant8-May-02 10:40 
GeneralIJW Question Pin
Nick Parker8-May-02 9:11
protectorNick Parker8-May-02 9:11 
GeneralRe: IJW Question Pin
Nish Nishant8-May-02 9:28
sitebuilderNish Nishant8-May-02 9:28 
GeneralRe: IJW Question Pin
Nick Parker8-May-02 9:31
protectorNick Parker8-May-02 9:31 
GeneralRe: IJW Question Pin
Rama Krishna Vavilala8-May-02 9:40
Rama Krishna Vavilala8-May-02 9:40 
GeneralPrint Preview & Printing Pin
Mash8-May-02 8:51
Mash8-May-02 8:51 
GeneralRe: Print Preview & Printing Pin
Roger Allen9-May-02 2:27
Roger Allen9-May-02 2:27 
GeneralUsing CMenu in a CDialog Pin
8-May-02 7:52
suss8-May-02 7:52 

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.