Article View: borland.public.cppbuilder.nativeapi
Article #8144Writing a new class
From: Bob Piskac
Date: Fri, 19 Nov 2004 02:07
Date: Fri, 19 Nov 2004 02:07
18 lines
1400 bytes
1400 bytes
I am trying to set some local variable with SetWindowLongPtr. I assumed each
time I create a window that I would have a new cbWndExtra pointer. It
appears that I am wrong and there is just one pointer on the original class
that gets created. Am I right?
If I want a local variable for each window, do I have to create a list of
variables on the main class and link it with the window handle of each
window?
Example
struct stWindowData{
HWND hWnd,
HBITMAP hBitmap;
struct stWindowData *next;
};
Each time I create a window I need to add to my list in the WM_CREATE event?
Technical Details
Message-ID:
<419d5550@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7365b8f9d6c577e1,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob Piskac" <bob@pbsoftware.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Writing a new class Date: Thu, 18 Nov 2004 21:07:28 -0500 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 68.249.14.21 Message-ID: <419d5550@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100830032 68.249.14.21 (18 Nov 2004 18:07:12 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail