Search:
Type: Posts; User: cbpetro
Search:
Search took 0.08 seconds.
-
February 26th, 2014, 10:06 AM
Correct, but when I use the default AddView I never have the HWND of each CView, unless I call OnActivateView or something as I am not use the doc/view architecture. If I use the custom AddView, I...
-
February 26th, 2014, 09:45 AM
The AddView code that Igor provided, I had to change my AddView call from...
AddView (RUNTIME_CLASS (CView1), _T("Simple"), 100);
to...
AddView (RUNTIME_CLASS (CView1),...
-
February 26th, 2014, 09:17 AM
Got it, I added the function to my CMyTabView class and now I have the HWND.
Thanks
-
February 26th, 2014, 09:05 AM
Thanks Igor, that makes sense. Where does that code come from?
-
February 25th, 2014, 12:06 PM
I have a clistctrl on the view that I want to update from a database. The database updated the view before it is displayed. So I want the view to have an HWND so I can access its functions.
-
February 25th, 2014, 09:37 AM
I'm using the Feature Pack CTabView, and I noticed that when the view is added using AddView with the following code CView's HWND is NULL when I try and access each of the CView1,CView2, etc.
...
-
January 16th, 2014, 08:52 PM
It was just too easy...
EnableMDITabbedGroups is what I was looking for.
-
January 16th, 2014, 09:52 AM
Essentially I have an MDI that I want to be able to switch between having all my views tabbed when one is maximized and having all my views cascaded or tiled to their previous sizes. The MFC app...
-
November 7th, 2013, 11:19 PM
You were right get the CView1's parent which is the CMFCTabCtrl and then get the CMFCTabCtrl's parent which is the CTabView. Solved.
CMyTabView* CMyTabView::GetView()
{
CMDIChildWnd *...
-
November 7th, 2013, 12:27 PM
Hmm, good point. I'm using a static function in CMyTabView...
class CMyTabView : public CTabView
{
public:
...
...
virtual void OnInitialUpdate();
-
November 7th, 2013, 10:14 AM
CView1, CView2... are not members of CMyTabView, they are added as tabs with...
int CMyTabView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CTabView::OnCreate(lpCreateStruct) == -1)
...
-
November 7th, 2013, 09:50 AM
I have an MDI app with a CTabView that has 3 CView's (CView1, CView2, CView3) added as individual tabs...
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(...
-
August 26th, 2013, 09:59 PM
Thanks, I understand now. Your example is code is very helpful to clarify the point ...
"You don't return a 'block of memory'. You return a pointer to a particular memory location which the...
-
August 26th, 2013, 03:27 PM
I change length to offset because that appears to be confusing people.
Like I said in my original post I've never worked with memory at this level and I asked if what I'm doing is even possible. ...
-
August 26th, 2013, 02:56 PM
m_lpData would not point to memory at any particular location but would point to a particular block of memory from which I want to get a sub-block so using your data...
// using your data...
-
August 26th, 2013, 02:18 PM
LPVOID m_lpData;
LPVOID GetMemory(DWORD pos, DWORD offset)
{
BYTE* buffer = (BYTE*)m_lpData;
buffer += pos;
// how to return block of the memory an offset from start position +pos ?
...
-
August 26th, 2013, 01:44 PM
Let's say my memory; m_lpData, points to an int + 2 doubles + 100 structs of sum POD type
I want a function to return a pointer to the memory of 100 structs for instance
so offset would be...
-
August 26th, 2013, 12:38 PM
Yeah, I considered that but I my question is related to parsing memory not to the mapping which is OS related.
I have the memory, how do I get pointer to a portion of that?
-
August 26th, 2013, 10:22 AM
I'm working with memory mapped files and I have a block of memory that I've mapped to.
I want to write a function that returns a pointer to a portion of the mapped memory at an offset and length...
-
Mike,
When you use the boolean to stop the thread, the thread is only stopped. The m_pThread is still a pointer to CWinThread. It seems to me, there may be three conditions you may want to...
-
Mike,
Thanks for your help, I'm starting to understand. I have one follow up question that maybe you or someone else can help with. I used AfxEndThread in the ThreadFunc because MSDN recommends...
-
How do I stop a thread? I'm using ::TerminateThread within this code and the thread keeps running. Is this the correct procedure? Thanks for any help.
void CPageTwo::OnBnClickedButTest()
{...
-
Yes that did it. The file was exported from MSSQL and that was the problem.
Thanks.
-
This should be a trivial excersize, but for some reason I'm getting a problem
when I read a text file. I'm reading a list of strings in text file, with one string per line. The first line has...
-
I have a WTL custom control that a I place on a ATL property page. The control is made up of a ListBox and Button that when pressed displays a popup window. I subclass the listbox in the dialog's...
|
Click Here to Expand Forum to Full Width
|