|
In icon view... is there a way to set the spacing between the top border and the top items? I'm using set position, but when I scroll down and then up again, the top icons are reassigned to a distance of about 2 pixels from the border.
This is how it looks:
-----------------------
| TTTT | 1 or 2 pixels (default)
| |
| |
| |
This is what i want:
-----------------------
| | 20 pixels
| TTTT |
| |
| |
|
|
|
|
|
Have you played around with the LVS_ALIGNxxx styles?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You mean LVS_ALIGNTOP and LVS_ALIGNLEFT? There's nothing I can play with there...
|
|
|
|
|
skullfire wrote: You mean LVS_ALIGNTOP and LVS_ALIGNLEFT?
Yes, and LVS_ALIGNRIGHT and LVS_ALIGNBOTTOM .
skullfire wrote: There's nothing I can play with there...
Why not?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I wonder if unsigned 64bit integer is valid on a vc++ 6.0 compiler. In my application I have to use uint64 data type and whenever I try to use the command that is assigned to this, it fails. These are the two syntaxes that I have to use to define the buffers and the second one is for 64bit unsigned integer buffer on a system having a 64bit compiler and the first one is for systems with non-64bit compiler. If I have to use the first one, how can I define the low/high offsets and low/high transferlen.
Suppose I want to start the buffer with zero offset and buffer length of 1024x1024bytes.
//*************************************************************************
uint32 _stdcall spcm_dwDefTransfer_i64m(// Defines the transer buffer by using 2 x 32 bit unsigned integer values for each 64 bit value
drv_handle hDevice, // handle to an already opened device
uint32 dwBufType, // type of the buffer to define
uint32 dwDirection, // the transfer direction as defined above
uint32 dwNotifySize, // amount of bytes after which i want do receive
void* pvDataBuffer, // pointer to the data buffer
uint32 dwBrdOffsH, // high part of offset in board memory
uint32 dwBrdOffsL, // low part of offset in board memory
uint32 dwTransferLenH, // high part of transfer buffer length
uint32 dwTransferLenL); // low part of transfer buffer length
//*************************************************************************
uint32 _stdcall spcm_dwDefTransfer_i64 (// Defines the transer buffer by using 64 bit unsigned integer values
drv_handle hDevice, // handle to an already opened device
uint32 dwBufType, // type of the buffer to define as listed above
uint32 dwDirection, // the transfer direction as defined above
uint32 dwNotifySize, // amount of bytes after which i want do receive
void* pvDataBuffer, // pointer to the data buffer
uint64 qwBrdOffs, // offset for transfer in board memory
uint64 qwTransferLen); // buffer length
thanks,
-Pavan.
-- modified at 18:07 Wednesday 8th November, 2006
|
|
|
|
|
Did you try using the LARGE_INTEGER struct?
|
|
|
|
|
Sorry, didn't get you, I know there is LARGE_INTEGER data type, but where do you want me to use it?? This command is specific to the board driver that I am using.
thanks,
-Pavan
|
|
|
|
|
Something like this?
uint32 _stdcall spcm_dwDefTransfer_i64 (
drv_handle hDevice,
uint32 dwBufType,
uint32 dwDirection,
uint32 dwNotifySize,
void* pvDataBuffer,
union
{
uint64 qwBrdOffs;
struct
{
uint32 dwBrdOffsL;
uint32 dwBrdOffsH;
};
};
union
{
uint64 qwTransferLen;
struct
{
uint32 dwTransferLenL;
uint32 dwTransferLenH;
};
};
*EDIT* Fixed some typing :)
-- modified at 19:04 Wednesday 8th November, 2006
|
|
|
|
|
I have no idea how their developers (strategic-test) have developed these two syntaxes. Maybe same as how you defined, but I am not sure. I have asked their technical support to rephrase my i64 command into i64m command.
BTW how can we define the low and high addresses or lengths for a 64bit integer while accesses it in 32bit fashion??
-Pavan
|
|
|
|
|
pavanbabut wrote: BTW how can we define the low and high addresses or lengths for a 64bit integer while accesses it in 32bit fashion
With the structure I showed as an example you can access them either way - through the dw or the qw members.
The struct will work for both 32 and 64 bit but that doesn't mean that's what the driver vendor
does.
|
|
|
|
|
Why not use
typedef unsigned __int64 uint64;
typedef __int64 int64;
Which gives you easy to use 64 bit types just like unsigned/signed ints of other sizes, and then use unions as shown above to deal with the component parts?
Steve S
Developer for hire
|
|
|
|
|
How can I read a whole line from a text file into a string in C?
|
|
|
|
|
|
|
Hi i would like to ask:
m_Btn (variable for a Button graphic)
how i will say if m_Btn.EnableWindow(TRUE) then return 0
if ( m_Btn.EnableWindow() == TRUE)
{
return 0;
}
?
|
|
|
|
|
<code>
if (m_Btn.IsWindowEnabled())
return 0;
|
|
|
|
|
and how if i want to say is Disable ? :P
(as i see m_Btn.IsWindowDisabled()) doesnt work
|
|
|
|
|
bool disabled = !m_Btn.IsWindowEnabled();
|
|
|
|
|
if ( ! m_Btn.IsWindowEnabled() )
return 0;
|
|
|
|
|
thx
|
|
|
|
|
np, just remember it always tests if it is zero.
|
|
|
|
|
When you run a function see return value if its bool A() you can use for example if (A()) and if(!A())
|
|
|
|
|
Can anybody tell me how to find the system font?
I'm trying to find the font currently associated with a window, MSDN states that if WM_GETFONT returns NULL, then the window is using the system font. But it doesn't tell me how to get a handle to it.
|
|
|
|
|
Nm. I got it sorted. Thanks for the help.
|
|
|
|
|
Well, several days ago I posted a message that the MouseMove was not being captured on a CListCtrl whenever the user was selecting more than one item on a CListCtrl derived class. The replies were basically "it works for me", but no matter how much i tested, it didnt.
The CListCtrl is in large icon view, and I need invalidate a control when the user is selecting various items with the mouse (dragging the mouse).
I'm using this, just to test:
void CMyListCtrl::OnMouseMove(UINT nFlags, CPoint point)
{
if (nFlags & MK_LBUTTON)
ASSERT(FALSE);
CListCtrl::OnMouseMove(nFlags, point);
}
As you could probably test, this is not working. Where can I capture this event?
|
|
|
|